Skip to main content
March 8, 2025
Solved

Error Code 6140 - Duplicate Document Error - Manual Invoices are using our Prefix

  • March 8, 2025
  • 1 reply
  • 0 views

We are experiencing 6140 errors when trying to sync invoices over to QBO. When invoices are synced from our 3rd party app, we prefix it like the error code tells us to "App_documentnumber" for example. However, when an invoice is created on only the QBO side, QBO defaults the invoice number to be the next document number following OUR prefix.

Issue:
App_1000 (Synced Over to QBO)
App_1001 (Created in QBO)

Expected:
App_1000 (Synced Over to QBO)
1000 or 1001 (Created in QBO)

QBO should not be using our prefix.

Best answer by JenoP

Error 6140 occurs when the document number you are attempting to use has already been assigned to a prior transaction, Ohgreatone01. I'll share some details to assist you and clarify how transaction numbers are managed in QuickBooks Online.

 

Could you first specify which third-party application is integrated with your QuickBooks Online account? Are you a developer?

 

Please keep in mind that QuickBooks Online will continue with the next number in the sequence, including any prefixes or additional characters, when generating sales transactions. This is why the next invoice is automatically assigned App_1001, as App_1000 is already recorded in QBO.

 

For now, there's no option to create a separate sequence for invoices synced from different sources compared to those created directly in QuickBooks Online.

 

However, you can manually override the transaction number when creating invoices in QBO to avoid using the prefixes from the third-party app.

 

If you're a developer, we provide a dedicated Community and support site specifically for Intuit Developers like you. On this site, you can find resources and submit questions related to developing and synchronizing applications with QuickBooks Online.

 

Follow these steps to access the site and how to post your inquiries:

 

  1. Go to this link: https://help.developer.intuit.com/s/.
  2. Choose your QuickBooks product relevant to your integration.
  3. Click on "Ask a Question".
  4. Sign in and follow the prompts appearing on the screen to continue.

 

Allow me to share these articles for further guidance on managing third-party integrations in QBO:

 

 

Please feel free to reach out to us anytime you have further questions regarding data synchronization, invoice management, or general bookkeeping tasks in QuickBooks Online. We're always here to assist you.

1 reply

JenoP
JenoPAnswer
March 8, 2025

Error 6140 occurs when the document number you are attempting to use has already been assigned to a prior transaction, Ohgreatone01. I'll share some details to assist you and clarify how transaction numbers are managed in QuickBooks Online.

 

Could you first specify which third-party application is integrated with your QuickBooks Online account? Are you a developer?

 

Please keep in mind that QuickBooks Online will continue with the next number in the sequence, including any prefixes or additional characters, when generating sales transactions. This is why the next invoice is automatically assigned App_1001, as App_1000 is already recorded in QBO.

 

For now, there's no option to create a separate sequence for invoices synced from different sources compared to those created directly in QuickBooks Online.

 

However, you can manually override the transaction number when creating invoices in QBO to avoid using the prefixes from the third-party app.

 

If you're a developer, we provide a dedicated Community and support site specifically for Intuit Developers like you. On this site, you can find resources and submit questions related to developing and synchronizing applications with QuickBooks Online.

 

Follow these steps to access the site and how to post your inquiries:

 

  1. Go to this link: https://help.developer.intuit.com/s/.
  2. Choose your QuickBooks product relevant to your integration.
  3. Click on "Ask a Question".
  4. Sign in and follow the prompts appearing on the screen to continue.

 

Allow me to share these articles for further guidance on managing third-party integrations in QBO:

 

 

Please feel free to reach out to us anytime you have further questions regarding data synchronization, invoice management, or general bookkeeping tasks in QuickBooks Online. We're always here to assist you.