Skip to main content
All CollectionsTroubleshooting
Error: 'Unable to cast object of type 'Intuit.Ipp.Data.AccountBasedExpenseLineDetail' to type 'Intuit.Ipp.Data.ItemBasedExpenseLineDetail'
Error: 'Unable to cast object of type 'Intuit.Ipp.Data.AccountBasedExpenseLineDetail' to type 'Intuit.Ipp.Data.ItemBasedExpenseLineDetail'

How to clear the error 'Unable to cast object of type......' from your invoices.

Oliver Cook avatar
Written by Oliver Cook
Updated over a year ago

Symptom

You are receiving the below error message when attempting to publish an invoice.

Error: Unable to cast object of type 'Intuit.Ipp.Data.AccountBasedExpenseLineDetail' to type 'Intuit.Ipp.Data.ItemBasedExpenseLineDetail'.

Applies To

  • QuickBooks Online integrated companies.

Cause

This error typically occurs when a change has been made to your QuickBooks Online company's settings which has not been reflected in AutoEntry via a re-sync.

Resolution

To clear the error, please do the following:

  1. Navigate to the Integrate page, located on the left hand side of your company homepage.

  2. Click Disconnect.

  3. You will then be prompted to connect the integration again. Once the company is reconnected to QuickBooks Online, scroll down to the 'Line Items on Purchases Invoices' heading on the Integrate page (shown below).

  4. Change this setting to Prouct Codes/Services, click Save. Then change the setting back to Account Codes and click Save again.

  5. Republish the affected invoice(s).

Did this answer your question?