Hi,
 I am getting the InvalidEntryException because I update a deleted entry.
But I can't avoid this because hasDeleted method returns false for me.
What am I doing wrong? What is the right way to check the 'deleted' 
attribute?

ContactEntry entryToUpdate = myService.getEntry(new URL(contId), 
ContactEntry.class);

if (entryToUpdate.hasDeleted())

 // dont update

Caused by: com.google.gdata.util.InvalidEntryException: Bad Request
Contact entries received from a client must not have deleted set to true

        at 
com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:594)
        at 
com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
        at 
com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552)
        at 
com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
        at 
com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
        at com.google.gdata.client.Service.update(Service.java:1563)
        at com.google.gdata.client.Service.update(Service.java:1530)
        at 
com.google.gdata.client.GoogleService.update(GoogleService.java:583)

-- 
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

Reply via email to