Skip to main content
Solved

Document object connections


Forum|alt.badge.img+3
What is the reason for the document object connections to remain even after deleting the connected objects?

Best answer by Thilini Kumarasinghe

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.
View original
Did this topic help you find an answer to your question?

2 replies

Thilini Kumarasinghe
Ultimate Hero (Employee)
Forum|alt.badge.img+21
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.

Forum|alt.badge.img+7
  • Sidekick (Employee)
  • 26 replies
  • October 1, 2019
Good answer... Thank you

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings