Hi,
Sometimes when trying to delete objects in Forms or even Forms themselves, or Functions I get errors like this:
ERROR: update or delete on table "form" violates foreign key constraint "open_form_form_id_open_fkey" on table "open_form" (SQLSTATE 23503)
Logic indicates that this is because the entitity is in use somewhere else. However this happened to me when trying to delete an empty container (not very logic).
I can leave the element there and not use it anymore, however I like to keep the house clean, and delete unused objects, so ...
How do you suggest I troubleshoot this?
I can go directly to the table referenced in the error and with the object ID try to see what is the problematic relationship and do something about it. Sounds dangerous.
In the cases that makes sense I usually find the offending counterpart in the UI and solve it there, but other times there is no such part (for example when deleting an empty container)
In this case seems like some information in the table got "wrong".
On the other hand as the application grows this gets worse, in that it is harder to find anything at that detail level.
Your help will be much appreciated!!
Thank you!!
Warm regards!