?
Solved

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

Posted on 2012-03-14
10
Medium Priority
?
539 Views
Last Modified: 2012-03-26
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?
0
Comment
Question by:bigjdve
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 27

Expert Comment

by:Chinmay Patel
ID: 37722173
Hi bigjdve,

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

Regards,
Chinmay.
0
 
LVL 3

Author Comment

by:bigjdve
ID: 37722185
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
 
LVL 27

Expert Comment

by:Chinmay Patel
ID: 37722283
Could you take a screen shot of the attribute and post it here?
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 3

Author Comment

by:bigjdve
ID: 37722480
Here is the screenshot.
attribute.docx
0
 
LVL 27

Assisted Solution

by:Chinmay Patel
Chinmay Patel earned 1000 total points
ID: 37728652
Can you check if someone has inserted custom script on this field?
0
 
LVL 3

Author Comment

by:bigjdve
ID: 37748611
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
 
LVL 30

Assisted Solution

by:Feridun Kadir
Feridun Kadir earned 1000 total points
ID: 37748649
That is definitely not normal behaviour for Dynamics CRM. Are you saying this happens to any field that you create of type nvarchar?
0
 
LVL 3

Accepted Solution

by:
bigjdve earned 0 total points
ID: 37749406
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
 
LVL 30

Expert Comment

by:Feridun Kadir
ID: 37749716
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
 
LVL 3

Author Closing Comment

by:bigjdve
ID: 37764974
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

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This collection of functions covers all the normal rounding methods of just about any numeric value.
Desired Skill Set for Microsoft Dynamics CRM Technical Resources – Part II
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question