There are two sourcedocumentline records with a sourcerelationtype of 1425 associated with the sourcedocument header for an invoice. The Recid for the orphaned record is not contained within the SourceDocumentLine field of any VendInvoiceInfoTable record.
DESCRIPTION OF CHANGE
The changes in the hotfix include adding a lock and an extra check against the invoice in the active to saved deep copy method. This will check if the workflow processing deep copy and the close form deep copy are running at the same time, one of them will exit out before touching the lines. This will ensure the lines on the invoice are only copied once.
If you've found this thread useful, dive deeper into User Group community content by role