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?
LVL 3
bigjdveAsked:
Who is Participating?
 
bigjdveConnect With a Mentor Author 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.
0
 
Chinmay PatelEnterprise ArchitectCommented:
Hi bigjdve,

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

Regards,
Chinmay.
0
 
bigjdveAuthor 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.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Chinmay PatelEnterprise ArchitectCommented:
Could you take a screen shot of the attribute and post it here?
0
 
bigjdveAuthor Commented:
Here is the screenshot.
attribute.docx
0
 
Chinmay PatelConnect With a Mentor Enterprise ArchitectCommented:
Can you check if someone has inserted custom script on this field?
0
 
bigjdveAuthor 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.
0
 
Feridun KadirConnect With a Mentor Principal ConsultantCommented:
That is definitely not normal behaviour for Dynamics CRM. Are you saying this happens to any field that you create of type nvarchar?
0
 
Feridun KadirPrincipal ConsultantCommented:
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.
0
 
bigjdveAuthor 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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.