I realized my error. Not all my starTime values were yyyy-mm-dd Some of the months / dates had just a single digit without a leading zero - that was the problem.
I also partially misled with my xml below - which was hand crafted and not actually copied from the data on the wire. Cheers, Sriram On Nov 23, 5:49 pm, Karra <[email protected]> wrote: > I am uploading a new contact using the python api, and running into > issues with inserting an anniversary field. The xml in the contact > entry that I am sending out is: > > <ns1:event rel="anniversary"><ns2:when startTime="2011-01-01" /></ > ns1:event> > > The insert fails with the following code and reason: > > Reason: Attribute 'when' shoud be date of one of types: xs:date or > xs:gMonthDay. Code: SYNC_BAD_REQUEST > > There is nothing wrong with the format of startTime, clearly. What am > I missing? I have searched high and low for some light on this issue, > but found none. Can someone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Google Contacts, Shared Contacts and User Profiles APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://code.google.com/apis/contacts/community/forum.html
