We help IT Professionals succeed at work.

MS CRM 4.0 postal code field won't except 0 as first number

I just noticed that CRM removes the first character of a zip code if it is a Zero. This is a problem because there are states such as NJ and RI that have zero as the first number in the sequence.

I was wondering does anyone know how to make CRM leave the first zero there?
Comment
Watch Question

Chinmay PatelChief Technology Ninja
SILVER EXPERT
Distinguished Expert 2019

Commented:
Hi bigjdve,

How about using a text datatype? I think you tried with a number datatype.

Regards,
Chinmay.

Author

Commented:
I have looked at that since that would be the way to fix it in Excel. However in CRM that field is predetermined and is set as a NVARCHAR.
Chinmay PatelChief Technology Ninja
SILVER EXPERT
Distinguished Expert 2019

Commented:
Could you take a screen shot of the attribute and post it here?

Author

Commented:
Here is the screenshot.
attribute.docx
Chinmay PatelChief Technology Ninja
SILVER EXPERT
Distinguished Expert 2019
Commented:
Can you check if someone has inserted custom script on this field?

Author

Commented:
Nobody has made any changes to this particular field.

Any nvarchar field that you create by default will remove any 0 from the beginning.

I am trying to find a way to not have  that happen.
Feridun KadirPrincipal Consultant
BRONZE EXPERT
Commented:
That is definitely not normal behaviour for Dynamics CRM. Are you saying this happens to any field that you create of type nvarchar?
Commented:
It looks like I found the issue.

The attribute was set to IME_Mode = inactive

I set it to IME_Mode = auto

and now it is working.

I compared against a couple other Nvarchar fields and found the one difference listed above and tried it.

Now it works.
Feridun KadirPrincipal Consultant
BRONZE EXPERT

Commented:
Amazing, IME stands for input method editor and I thought it was only relevant for languages with complicated character sets. I've never changed the setting from auto but I'm surprised that setting it to inactive has the effect that it does.  One to remember.

Thanks for the points - a fair allocation.

Author

Commented:
Feridun - I am giving you 1/2 the points as your comment got me to look more closely at all of the settings on the field.

Chinmay_patel - I am giving you 1/2 as well.

After seeing comments from both experts, I was able to fix the issue myself.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.