INTERNET APPLICATION DEVELOPMENT
MID MARKET ERP DEVELOPMENT
by Joe Zhou
A while ago, I wrote a simple application to mass update a contact’s email address using Intacct 3.0 API for a client. A sample code snippet is shown below. However, the client reported to me this week that the application stopped working. I was very surprised to hear it because it was such a simple application.
After I ran the code snippet against the client’s sandbox environment, sure enough I did get the following error: Invalid Country Code. At first, I couldn’t figure out why it had anything to do with the country code when all I wanted to do was to update the email address. As I checked the Company Information settings, I noticed the client turned on the “Use Country Code List” flag. The result is that the country code value is required in the request when they turned on this flag.
I then revised the XML code and added the country code information. The application started working again. Case closed!
ISO.org has a list of standard ISO codes that can be very handy when you want to look up the codes for other countries.
If you have any questions about fixing Intacct error codes, please let me know.