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 view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/SHZmVl9oSGpCSHdK. 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-java?hl=en.
