Forum Discussion
eli_donahue
9 years agoNew Member
Hi Eimantas,
Can you clarify the data model you are working with (ex: parent ItemType, related ItemType, relationship ItemType), and what kind of item dok nr-xxxx is?
Can you also confirm that you are trying to delete a relationship item and not the related item?
The error you've described typically occurs when you try to delete a child item before deleting a relationship item. For example:
Part A <-- source_id -- Part BOM -- related_id --> Part B (original data)
Part A <-- source_id -- Part BOM -- related_id --> Part B (deleting child item, Part B, will cause described error)
Part A <-- source_id -- Part BOM -- related_id --> Part B (deleting the relationship item, Part BOM, does not throw error*)
* You may encounter the error you described when deleting a relationship item if the relationship item itself has a non-null relationship, but that scenario isn't very common.
Eli
Eli Donahue Aras Labs Software Engineer
Eli Donahue Aras Labs Software Engineer