This article covers
Third-party request failed [ERROR CODE:6140, ERROR MESSAGE: Duplicate Document Number Error,
Quickbooks sync error 6140
If you have received a Quickbooks sync error in the format-
“Third party request failed [ERROR CODE:6140, ERROR MESSAGE:Duplicate Document Number Error, ERROR DETAIL:Duplicate Document Number Error : You must specify a different number. This number has already been used. DocNumber=xxx is assigned to TxnType=Invoice with TxnId=xxx, MORE ERROR DETAIL:]”
This error occurs when there already exists an invoice/credit note in QB with the same invoice/credit note number.
There are 2 ways to handle this:
If it is the same invoice/credit note that has already been created in QB manually, then you can simply choose to ignore this sync error so that it does not show up again in the future.
Re-number the invoice/credit note already existing in QB so that the invoice/credit note from Chargebee can sync through.