Solved

Document object connections

  • 1 October 2019
  • 2 replies
  • 446 views

Userlevel 3
Badge +3
What is the reason for the document object connections to remain even after deleting the connected objects?
icon

Best answer by Thilini Kumarasinghe 1 October 2019, 11:15

View original

2 replies

Userlevel 7
Badge +18
An object connection can be made to any business object such as “Standard job”, "work order operation line" etc. And some of these objects can be deleted from the application any time. For an example, if you created an operation line in a work order, then your document is attached to the object “Standard job role”. And you are allowed to remove the operation line from the application. Now the object connections are no longer valid and will not be deleted from the application either. These are called "Dangling object connections" since these are not connected to any object. This happens only for some of the business objects.
Document, media (or other connections under Attachments) unfortunately does not "know" if an object that uses it, has been removed.
In such a scenario, you can follow below steps to solve this:

  1. Schedule the database task "Remove Dangling Object Connections" to be run periodically. This database task removes object connections which are no longer valid.
  2. Furthermore, to avoid this issue in the future, you can take below actions:
  • Go to the “System Parameters” window
  • Then make a query for below
Category – “Systems Settings”
Parameter- “Delete Object Connection when Parent Objects are Deleted”
  • Then change the “Value” to “ON” and save.
Now each time you delete the job operation, the object connection will get removed automatically without the background job execution.
Userlevel 3
Badge +5
Good answer... Thank you

Reply