Country Codes
Posted: Thu Jun 02, 2011 3:26 am
With Jason's (off-list) help I've been getting the Google Contact sync setup. However, I've run into a snag with country codes and related addresses that I thought was worth 'sharing with the group'...
When syncing, I get an error like this:
To get around this, I changed the 'Country' value in the record concerned to "DE" instead (the country code for Germany). This then sync'ed to Google ok. So I thought, what happens if I change it back to Germany in Google? (something that users are likely to do). I did this and synced again. Instead of failing or changing the country back to Germany, the sync caused a foreign key in the related address record to be deleted! This field isn't even present on the ZuluRelatedAddr layout, so I am not sure why this happened...
I've also tried using 'Germany' in the 'main' Country field that is mapped on the 'ZuluContacts' layout. When I synced this field was not carried over to Google at all.
I suspect I'm doing something wrong, but wondered if anyone else had experienced similar problems?
When syncing, I get an error like this:
- Code: Select all
...
com.google.gdata.util.InvalidEntryException: Bad Request Invalid country code: Germany
...
To get around this, I changed the 'Country' value in the record concerned to "DE" instead (the country code for Germany). This then sync'ed to Google ok. So I thought, what happens if I change it back to Germany in Google? (something that users are likely to do). I did this and synced again. Instead of failing or changing the country back to Germany, the sync caused a foreign key in the related address record to be deleted! This field isn't even present on the ZuluRelatedAddr layout, so I am not sure why this happened...
I've also tried using 'Germany' in the 'main' Country field that is mapped on the 'ZuluContacts' layout. When I synced this field was not carried over to Google at all.
I suspect I'm doing something wrong, but wondered if anyone else had experienced similar problems?