Error While Updating CCR

12 views
Skip to first unread message

Ash Kin

unread,
Nov 19, 2009, 6:17:46 PM11/19/09
to gdata-objec...@googlegroups.com

Hi, Grag,


While updating CCR with help of Google API and using fetchEntryByUpdatingEntry method getting following error. 


*** Assertion failure in -[GDataServiceGoogle fetchEntryByUpdatingEntry:forEntryURL:delegate:didFinishSelector:](), /Projects/iPhone/GoogleAPI/Source/BaseClasses/GDataServiceGoogle.m:676


Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unsafe update of GDataEntryHealthProfile'


Can you please give me any idea what should I look for ?


Thanks

Ash


Greg Robbins

unread,
Nov 19, 2009, 6:26:47 PM11/19/09
to gdata-objec...@googlegroups.com
You hit a library assertion.

Search for "unsafe update" in the GData library sources to find the assertion. It explains that you are calling setShouldServiceFeedsIgnoreUnknowns:YES and then trying to update one of the returned entries in the feed. The project site's PerformanceTuning wiki page explains how to update such entries.

Ash Kin

unread,
Nov 20, 2009, 9:26:32 AM11/20/09
to gdata-objec...@googlegroups.com
Greg,
 
You are real quick and awesome. Thanks. I looked at suggested documents and found the solution for my problem.
 
Thanks,
Ash

 
On Thu, Nov 19, 2009 at 6:26 PM, Greg Robbins <grob...@google.com> wrote:
You hit a library assertion.

Search for "unsafe update" in the GData library sources to find the assertion. It explains that you are calling setShouldServiceFeedsIgnoreUnknowns:YES and then trying to update one of the returned entries in the feed. The project site's PerformanceTuning wiki page explains how to update such entries.

--

You received this message because you are subscribed to the Google Groups "Google Data APIs Objective-C Client Library Discussion" group.
To post to this group, send email to gdata-objec...@googlegroups.com.
To unsubscribe from this group, send email to gdata-objectivec-...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gdata-objectivec-client?hl=.

Ash Kin

unread,
Nov 21, 2009, 2:18:44 AM11/21/09
to gdata-objec...@googlegroups.com
Hi Greg,
 
While inserting the data in conditions from my code, it goes into the notice which says:
 
Medical data have been copied successfully.
 
Conditions:
Unknown record Type: ACTIVE.
 
I do not see any record under conditions
 
What this error means?
 
Thanks,
Ash
 


 
On Thu, Nov 19, 2009 at 6:26 PM, Greg Robbins <grob...@google.com> wrote:
You hit a library assertion.

Search for "unsafe update" in the GData library sources to find the assertion. It explains that you are calling setShouldServiceFeedsIgnoreUnknowns:YES and then trying to update one of the returned entries in the feed. The project site's PerformanceTuning wiki page explains how to update such entries.

Ash Kin

unread,
Nov 21, 2009, 2:54:15 AM11/21/09
to gdata-objec...@googlegroups.com
Hi Greg,
 
I got the solution. Thanks for your help.
 
Ash

On Thu, Nov 19, 2009 at 6:26 PM, Greg Robbins <grob...@google.com> wrote:
You hit a library assertion.

Search for "unsafe update" in the GData library sources to find the assertion. It explains that you are calling setShouldServiceFeedsIgnoreUnknowns:YES and then trying to update one of the returned entries in the feed. The project site's PerformanceTuning wiki page explains how to update such entries.
Reply all
Reply to author
Forward
0 new messages