How can we make the referenced-entity-doesn't-exist error message more informative
Created by: Henrik tom Wörden
A common problem when using the python client is that you want to insert or update one or more Records and you get an error from the server. However, these errors are often not really helpful.
E.g. "Entity Does not Exist": Which Entity? Often, the Parent or Property ID is shown, but if you have a container with hundreds of that parent or properties it is not helpful. It should be possible to identify the single Record or better its property that caused the error.
Example:
caosdb.exceptions.UnqualifiedPropertiesError: RECORD (6434) CAUSED UnqualifiedPropertiesError: Entity has unqualified properties.
+--| REASONS |--
| -> PROPERTY (6369,'ExampleRecordType') CAUSED EntityError: Referenced entity does not exist.
6434 does is the id of the respective Record. That is good, but we cannot see what the reference/id is that is wrong.
Imported comments:
By Florian Spreckelsen on 2020-07-13T09:19:24.824Z
mentioned in merge request !33 (merged)
By Florian Spreckelsen on 2020-06-26T07:47:45.974Z
mentioned in issue #32 (closed)
By Henrik tom Wörden on 2020-04-28T11:11:48.086Z
changed the description