What type of interface is this? Is it an inbound order interface?
You can usually get some clue about what is causing the error by querying the Dictionary table in the Works database. The Number column references the last 4 digits of your error number.
In your case use this query.
SELECT * FROM dbo.Dictionary WHERE Number = '5140'
The error looks like an issue with the InboundOrder_Interface_Auth_DE table.
You can also look at the stored procedure that the interface is calling and search for this error number. I am not seeing this error in the FileOrder SP, though.
Please post more info about the type of interface and maybe the target message that is generating this error.