Title
6000 - A business validation error has occurred while processing your request
URL Name
6000-A-business-validation-error-has-occurred-while-processing-your-request
Summary
Briefly describe the article. The summary is used in search results to help users find relevant articles. You can improve the accuracy of search results by including phrases that your customers use to describe this issue or topic.
Article Body

This error has different solutions depending on the error details. Solutions for each error are listed below.

Detail:

A business validation error has occurred while processing your request

Solution:

Make sure that TotalAmt is set with a valid transaction amount in the request payload for transactions such as BillPayment or Payment.


Detail:

Business Validation Error: Account {0} has the same account type and location. Please enter a different location for this account.

Solutions:

  1. For certain locales like France, QuickBooks has restrictions on multiple accounts of the same account type from the same location.

  2. If an Account object is created under the category where the purchSaleLocationRequired attribute is true in the master category list, the system does not allow more then one account to be created for the same location. For example, if an expense account 606401 is associated with a location within France under account category 6064, then the system does not allow another account (6064XX) to be created with the same location within France under the same 6064 account category

  3. If Account is created under the category where both the purchSaleLocationRequired attribute and the vatCodeRequired attribute are true in the master category list, the system does not allow more then one account to be created for the same location and VAT code combination. For example, if an income account 703001 is associated with location within France and 20 % TVA FR VAT rate under account category 703, then the system does not allow another account (703XXX) to be created with the same location within France and 20 % TVA FR VAT rate under the same account category 703.


Detail:

Business Validation Error: Unexpected Internal Error. (-32122)

Solutions:

  1. This error happens when there are multiple lines in the transactions against the same AR/AP account.

  2. Make sure to roll up all the lines for a given AR/AP account into a single line.


Detail:

Business Validation Error We're sorry, QuickBooks encountered an error while calculating tax. Try reselecting the tax rate or reentering the product/service item and saving the form again. Please click here for more information.

Solutions:

  1. This happens when the developer is trying to override the tax calculated by QuickBooks Online with a new value. If developers decide to provide their own tax amount instead of using Intuit-generated tax amounts, then the value they provide must meet the requirements made by QBO.
    For US companies (AST is enabled):

    1. The developer did not provide a TaxCodeRef such as 'TAX' or 'NON' in the SalesItemLineDetails. Anything other than 'TAX' or 'NON' will fail.

    2. The company does not have a TaxAgency set up for the state of customer's billing address.

  2. For NON-US companies:

    1. Do not modify the LineItem. Do not change the LineItem TaxCodeRef. Only the TxnTaxDetail should be modified. Change the TxnTaxDetail.TotalTax and each TaxLine.Amount only. The TaxCodeRef and TaxCodeRate should not be modified. Keep the TaxCodeRef value or TaxRateRef value that QuickBooks Online used.

    2. The TotalTax.TotalAmount should be the sum of total TaxLine.Amount of each TaxLine. For example: TxnTaxDetail.TotalTax = TaxLine1.Amount + TaxLine2.Amount ....

  3. This error can also happen when your app changes the TaxCode used for a line to a different TaxCode. Each TaxCode can contain many TaxRates so all supporting fields will need to be changed as well. You should gather details about the TaxCode and which TaxRate is used from that TaxCode. The following fields need to be updated when changing the TaxCodeRef of a line item.

    1. Line.SalesItemLineDetail.TaxCodeRef

    2. TxnTaxDetail.TotalTax

    3. TxnTaxDetail.TaxLine.TaxLineDetail.TaxRateRef

    4. TxnTaxDetail.TaxLine.Amount

    5. TxnTaxDetail.TaxLine.TaxLineDetail.TaxPercent

  4. Keep in mind that each line item needs to have a unique TaxCodeRef. If changing the TaxCodeRef for a line item results in two line items having the same TaxCodeRef then those two lines will need to be merged to a single line.


Detail:

Make sure all your transactions have a sales tax rate before you save

Solution:

It is likely the developers are using the default payload body from the API Explorer. The default body is used for creating a non-taxable Invoice for a US company. Using the same request body will not work for non-US companies that require a `TaxCodeRef` in the SalesItemLineDetail.


Detail:

Make sure all your transactions have a GST/HST rate before you save

Solution:

This typically occurs when your app is attempting to use `NON` or `TAX` as a TaxCodeRef for a non-US company. 'NON' and 'TAX' are only compatible for US companies.


Detail:

Business Validation Error: When you use Creditors, you must choose a supplier in the Name field.

Solution:

This error occurs if you're missing an EntityRef within the JournalEntryLineDetail field. Note that if the line item references an Accounts Receivable (A/R) account, you need to have a Customer in the Name Field, i.e. include a reference to a Customer entity in the EntityRef field.


Detail:

Business Validation Error: When you use Debtors, you must choose a customer in the Name field.

Solution:

This error occurs if you're missing an EntityRef within the JournalEntryLineDetail field. Note that if the line item references an Accounts Payable (A/P) account, you need to have a Vendor in the Name Field, i.e. include a reference to a Vendor entity in the EntityRef field.


Detail:

Business Validation Error: Tax Exemption Reason should be specified incase customer is marked as not taxable.

Solution:

This error occurs if you're not passing the TaxExemptionReasonId when you make the customer non-taxable. Make sure to pass the TaxExemptionReasonId when you are setting the filed Taxable to false.


Detail:

Business Validation Error: The type of name assigned to this transaction (customer, vendor, employee) is wrong.

Solution:

This error occurs when the IDs in references are invalid. If 'VendorRef' is present in the payload, ensure that the corresponding ID in the field is infact a Vendor ID and similarly for Customer and Employee.