Skip to content

QuickBooks Desktop 0x80040400 "QuickBooks found an error when parsing the provided XML text stream"

Updated

QuickBooks Desktop rejected the qbXML text. Validate the actual request and check any field that differs between a working and a failing payload.

QuickBooks Desktop returns 0x80040400 with QuickBooks found an error when parsing the provided XML text stream. In the reported sales order, the connector could submit the order after an en dash was removed from Memo.

What we checkedWhere
0x80040400 HRESULTIntuit Desktop SDK guide
SDK validator and QBFC VerifyIntuit Desktop SDK tips
SalesOrderAdd request that passed validation and still failedStack Overflow question

Check it yourself

  • Capture the actual qbXML sent to QuickBooks before changing any text fields. Run that request through the SDK's qbXMLValidator.exe and fix any grammar or element errors it reports.
  • If the validator passes and a particular sales order fails, compare its Memo with a working request. Preserve the characters during local testing so you can isolate the failing value.
  • For the case above, test the same memo with a plain hyphen in place of the en dash. Check whether the sales order already exists before retrying.

Still failing?

Send the error and request type, plus the field name and character if you isolated one, to money@iftodo.ai. Leave out the original memo and customer data.

Weekly sync checks for €29 a month

For one Shopify or Square to QuickBooks workflow, we check weekly exports for missing or duplicate records and email you when we find a mismatch. We run a sample first to see whether the two exports have matching references.

Ask for a sample check. We agree how to share exports before starting billing. Cancel by email before your next renewal.