Hello Ronoaldo,
Thanks a lot :).  That really fixed the issue.  It is a very tricky one.

Regards
-Aswath
www.AccountingGuru.in

2011/6/2 Ronoaldo José de Lana Pereira <rpere...@beneficiofacil.com.br>

> Hi Aswath,
>
> I guess that you have to allocate Ids, since you are setting the ids from
> the entities manually when you do the copy between namespaces. Try this:
>
> DatastoreService ds = DatastoreServiceFactory.getDatastoreService();
>
> // Before you put your entity:
> KeyRange range = new KeyRange(p.getParent(), p.getKind(),
> p.getKey().getId(), p.getKey().getId());
> ds.allocateIdRange(range);
>
> For each entity that you copy from one namespace to another one. I did this
> trick and stopped getting those errors.
>
> Best Regards,
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to