[Solved] IntIdMissingError

I made a custom folderish type with a RichText field, and whenever I try to edit the field I get this error:

zope.intid.interfaces.IntIdMissingError: <z3c.relationfield.relation.RelationValue object at 0x7f720cf4f6d8 oid 0x10f116 in <Connection at 7f721703ccf8>>

I tried many things, including re-indexing the whole site, and also this script:

I'm reluctant to delete and recreate the folderish object because it's already full of documents.
Thanks in advance for any clue...

Marc Lavallée via Plone Community wrote at 2022-2-15 21:59 +0000:

I made a custom folderish type with a RichText field, and whenever I try to edit the field I get this error:

zope.intid.interfaces.IntIdMissingError: <z3c.relationfield.relation.RelationValue object at 0x7f720cf4f6d8 oid 0x10f116 in <Connection at 7f721703ccf8>>

From the error message I conclude: there is a relation
with one missing endpoint.
If this is true, then locating the relation and fixing/deleting it
might solve the problem.

For situations when problems manifest themselves in exceptions,
Products.PDBDebugMode is a valuable aid to analyse them:
when run in "debug mode", it enters the debugger at the point
of unhandled exceptions. Usually, you can then easily analyse the
state and get clues towards the problem cause.

Hi Dieter.
Thanks, but I don't know much about pdb. I'd rather use ipython in debug mode than pdb.
I develop in a VM, so I don't have a pdb aware editor to help (and I don't know emacs...).
So unless I become a Python guru, I can't use Products. PDBDebugMode.

Would it be possible to find the objects and relations from the ids provided?
I don't understand : "object at 0x7f720cf4f6d8 oid 0x10f116 in <Connection at 7f721703ccf8>"

There seem to be a lot useful info here:

But it's a very scary post. I don't know where to start.

I fixed the relations using:

That was easy enough..
Thanks!

1 Like