Cannot Delete or Cancel an Item Linked to Itself

Hello, just wanted to ask for help, how do I cancel an Item Linked to itself?
The error log displays;
"Cannot delete or cancel because Item () is linked with Item () "
Thanks in advance!

1 Like

I am also getting same error for an item.
Have you found the resolution for this error?

The only 2 ways I know of to handle this situation:

  1. Identify and clear the document id in the linked field (can be a normal link field to itself, or could also be a child table within the record that references the original doctype).

  2. If #1 isn’t possible, might need to directly remove the link using a database command, if you have database SQL access.

You might also be able to use Frappe commands to handle this, although I’m not familiar with those.