[appengine-java] Re: the id allocated for a new entity was already in use, please try again.

2011-06-03 Thread Aswath Satrasala
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 > Hi Aswath, > > I guess that you have to allocate Ids, since you are setting the ids from > the entities manually when you do th

[appengine-java] Re: the id allocated for a new entity was already in use, please try again.

2011-06-02 Thread Ronoaldo José de Lana Pereira
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.getPa