4 digit postal code gives error "Destination postal code missing or invalid. " in fedex

4 digit postal code gives error "Destination postal code missing or invalid. " in fedex

We have code written in asp.net

Please let us know how to resolve this issue.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

US Postal codes use 5 digits...

Are you trying to ask Fedex to accept 4 digits for US?
Or are you not telling fedex the proper country?
citadelindAuthor Commented:
Let me give example of USA postal Code they have 4 digit code also.

Below are few example of USA Zip Code.

5645      38.562503      -82.545723      KITTS HILL      OH      LAWRENCE      STANDARD      
2155      42.422095      -71.109297      MEDFORD      MA      MIDDLESEX      STANDARD      
2177      42.446396      -71.459405      MELROSE      MA      MIDDLESEX      STANDARD      

If this code comes up it gives error but its usa zip code.

Those are in fact errors...

Example: Melrose MA zipcode is really 02176  NOT 2177
Lee W, MVPTechnology and Business Process AdvisorCommented:
Sounds like you are using a numeric field for the postal code - use a text field to preserve the leading zero or do some coding on your part so that if the number is less than 10000, you add a 0 in the beggining (when forwarding the info to FedEx.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.