Unhandled SQL Exception when wmtndocdeleteDocuments is invoked from a FLOW service

From a service that takes “wm.tn.rec:BizDocEnvelope” as its input and at some point in the flow this document is deleted from TN using
internal service “wm.tn.doc:deleteDocuments”- there are no Flow exceptions as such, but the following exception is thrown, how can this be avoided ? Using WM601 for IS and SQL server 2000 for TN DB.

java.sql.SQLException: [wm-cjdbc32-0014][SQLServer JDBC Driver][SQLServer]INSERT statement conflicted with COLUMN FOREIGN KEY constraint ‘fk_ActLog_RelatedDocId_BizDoc’. The conflict occurred in database ‘WM60_B2B_TN’, table ‘BizDoc’, column ‘DocID’.