So using encodedKey and post at http://stackoverflow.com/a/2761961/563746 helped. Issue was Kind X was being used in Kind Y with a one to many relation.
But I still fail to understand that why would it not get me the object when it is there ? What can be the issue there ? Will continue this discussion at http://stackoverflow.com/questions/19933134/nucleusobjectnotfoundexception-could-not-retrieve-entity-of-kind-x On Wed, Nov 13, 2013 at 8:23 PM, nikhil dhankani <[email protected]>wrote: > I cannot use Long or String as the key because this is referred in another > Kind. I will have try with key with encoding. > > > On Wed, Nov 13, 2013 at 7:32 PM, Vinny P <[email protected]> wrote: > >> On Wed, Nov 13, 2013 at 2:38 AM, nikhil dhankani < >> [email protected]> wrote: >> >>> Yes, it does show up. Strangely, this is not just happening to this >>> particular id but to all entities in this Kind. >>> >>> >> >> >> Instead of using a Key instance, can you use a Long as the entity's >> primary key and see if you can extract the entity? Here's an example: >> https://developers.google.com/appengine/docs/java/datastore/jdo/creatinggettinganddeletingdata#Keys >> >> >> ----------------- >> -Vinny P >> Technology & Media Advisor >> Chicago, IL >> >> App Engine Code Samples: http://www.learntogoogleit.com >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google App Engine" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-appengine/mzIuSECXPdQ/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-appengine. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
