Limited time. 50% OFF QuickBooks for 3 months.

Buy now & save
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Get unlimited expert tax help and powerful accounting in one place. Check out QuickBooks Online + Live Expert Tax.
Ohgreatone01
Level 1

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

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.

Solved
Best answer March 07, 2025

Best Answers
jenop2
QuickBooks Team

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

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.

View solution in original post

1 Comment 1
jenop2
QuickBooks Team

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

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.

Need QuickBooks guidance?
Log in to access expert advice and community support instantly.

Need to get in touch?

Contact us
Sign in for the best experience
Ask questions, get answers, and join our large community of QuickBooks users.
Sign In / Sign Up