SAP Message B1270 - Error when closing IDoc: Database error

Diagnosis
The IDoc could not be closed due to a database error.