Error 3140: There is an invalid reference to QuickBooks InvoiceLineItem SalesTaxCode ""

Easily resolve error 3140 in the Web Connector - indicating that a sales tax setting is not set in Settings > Tax in myWorks.

Written by the MyWorks Team

Updated at June 29th, 2023

Table of Contents

Keep getting one of these errors when pushing orders to QuickBooks Desktop using MyWorks Sync?

Error

Error Number:3140

Error:There is an invalid reference to QuickBooks InvoiceLineItem SalesTaxCode "" in the Invoice line.

Error:There is an invalid reference to QuickBooks InvoiceLineItem SalesTaxCode "10000-1162485497" in the Invoice line. QuickBooks error message: You can't set taxable if Sales tax is turned off or the item is not a taxable item type.

Cause

  1. Sales Tax is not enabled yet in your QuickBooks company - Preferences > Sales Tax

     
  2. A valid tax code is not set in MyWorks Sync > Settings > Taxes

Resolution

  1. Ensure that Sales Tax is correctly set up in QuickBooks.
    • Visit QuickBooks > Edit > Preferences, then click on the Sales Tax sidebar. Ensure sales tax is turned on, and a default Sales Tax Item is set (otherwise, QuickBooks won't let us send any line item to QuickBooks with the "tax" code)
    • Or, if it's preferred to leave Sales Tax off in QuickBooks, both sales tax codes in #2 below should be set to "Non".

       
  2. Once the above is confirmed, there are two areas in our sync where you should confirm taxes are correctly set:
    • MyWorks Sync > Settings > Taxes. Ensure you have a valid taxable, shipping tax and 0% rate set here. These may not be blank.
      * If you're using a Non-US version of QuickBooks, the setting in MyWorks Sync > Settings > Tax need to be changed from "Sales Tax Item" to "Sales Tax Code".
    • MyWorks Sync > Map > Taxes. Ensure that all of your tax rates in use in WooCommerce are mapped to a valid/appropriate Sales Tax Item in QuickBooks Desktop.