[Zope] ERROR: id already in use (deleted item)

JP Glutting jpg@research.dfci.harvard.edu
Mon, 22 Apr 2002 09:53:53 -0400


Hi all,

I am having a problem with the following error:

Error Type: Bad Request
Error Value: The id "MHC" is invalid--it is already in use.

The item in question used to exist, but was deleted. The database has 
since been packed (at least twice).

The origin of this problem seems to come from a bad Version, which 
locked a series of objects, and would not allow them to be modifed, nor 
accept version changes (it reported that there were no changes to save). 
I deleted the objects and started over. They now seem to be "phantom 
objects", and undeletable.

I had this problem with "phantom objects" going back as far as Zope 
2.1.x, but I had hoped it was fixed.

Any pointers to tools for debugging the ZODB, or tricks for orking 
around this (other than chaning the object's name - which I have alredy 
tried successfully, but it does leave these "blocks" in the database) 
woudl be very welcome.

Cheers,

JP Glutting