Thanks, Jeff. That's what I thought, and was really confused when the
keys appeared to be the same. I consequently used a base64 decoder to
decode the key and that's where I found my error.

Dale

On Mar 25, 10:58 pm, Jeff Schnitzer <[email protected]> wrote:
> Just to clear up a bit of confusion you may have:
>
> An id (or name) is *part* of a key.  It is a tautological
> impossibility to have two keys that are identical but ids that are
> different.
>
> Jeff
>
> On Thu, Mar 24, 2011 at 11:59 PM, Dale <[email protected]> wrote:
> > Ok, my bad. In the light of day the entity keys are different: The
> > difference was one character, an i changed to a j, probably due to the
> > ID being incremented.
>
> > Changing my code to use a key name so that the task does a get before
> > the put to check if the entity already exists.
>
> > Dale
>
> > On Mar 25, 12:41 am, Dale <[email protected]> wrote:
> >> Hi
>
> >> I insert an entity in to the datastore using a task. The first time
> >> the task ran it successfully put the entity, but the code crashed
> >> after the put (I forgot to include logging.) The task re-ran 7s later,
> >> and did the put again. This time due to a slightly different code path
> >> after the put it didn't need to log, and task completed successfully.
>
> >> However, on that kind I have two entities with the exact same key,
> >> just with different ID's. The data of the two entities is the same.
>
> >> I thought that it was not possible to have two keys that were the
> >> same. Did I miss something?
>
> >> I am using high replication datastore. The entities do not have any
> >> parents.
>
> >> Any help would be appreciated.
>
> >> Dale
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine" 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 
> > athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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://groups.google.com/group/google-appengine?hl=en.

Reply via email to