If you are using the RFC or IDoc adapter, the error might be due to stale metadata.
-- Example only – consult your DBA UPDATE po_headers_all SET locked_by = NULL, lock_flag = 'N' WHERE po_header_id = 14160; app-po-14160 document action not completed successfully
What does the show as the last completed step? If you are using the RFC or IDoc
APP-PO-14160: Document action not completed successfully typically occurs in Oracle E-Business Suite (EBS) when a user attempts a "Control" action (such as Cancel, Finally Close, or Close) on a document that is in a status incompatible with that action. Common Root Causes Status Conflict app-po-14160 document action not completed successfully