Skip to main content

BLACK FRIDAY SALE 70% OFF QuickBooks for 3 months* Ends 11/29

Buy now
Switch to QuickBooks and 70% off for 3 Months
Jul 15, 2022 2:35 PM UTC
Question

Item Inventory Add or Modify: 0x80040400: QuickBooks found an error when parsing the provided XML text stream

I am getting the above error Because of  <PurchaseCost> tag. But don't know what I am doing wrong here. If I omit <PurchaseCost> it works. I don't have XML Validator and VERBOSE log doesn't show anything.

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemInventoryAddRq requestID="567897">
<ItemInventoryAdd>
<Name>585928</Name>
<ParentRef><ListID>800004E2-1655395899</ListID></ParentRef>
<SalesDesc >CTC 100</SalesDesc>
<SalesPrice>100</SalesPrice>
<IncomeAccountRef>
<FullName>Sales</FullName>
</IncomeAccountRef>
<COGSAccountRef>
<FullName>Cost of Goods Sold</FullName>
</COGSAccountRef>
<PrefVendorRef>
<ListID >80002369-1532618859</ListID>
</PrefVendorRef>

<PurchaseCost >100</PurchaseCost>

<PurchaseDesc >CTC 100</PurchaseDesc>
<ExpenseAccountRef>
<FullName>Cost of Goods Sold</FullName>
</ExpenseAccountRef>
<AssetAccountRef>
<FullName>Inventory Asset</FullName>
</AssetAccountRef>
</ItemInventoryAdd>
</ItemInventoryAddRq>
<DataExtModRq>
<DataExtMod>
<OwnerID>0</OwnerID>
<DataExtName>SKU</DataExtName>
<ListDataExtType>Item</ListDataExtType>
<ListObjRef>
<FullName>585928</FullName>
</ListObjRef>
<DataExtValue>585233</DataExtValue>
</DataExtMod>
</DataExtModRq>
</QBXMLMsgsRq>
</QBXML>

2 replies

LieraMarie_A
Level 8
Jul 15, 2022 4:29 PM UTC

Hi there, @jarinanika.

Thanks for reaching out to us. I'll point you in the right direction to address this concern right away.

 

Which app are you using to import your items? I recommend contacting our Intuit Developer support for this one. They are the experts when it comes to integrating applications or any API concerns.

 

 Here's how:
 

  1. Go to this link: https://help.developer.intuit.com/s/.
  2. Choose QuickBooks Online under What do you need help with?. 
  3. Click Ask a Question.
  4. Log into your existing Intuit Developer Account or create a new one.
  5. Enter your concern.
  6. Click Ask.


Additionally, you'll want to browse our help articles to find more tips and other resources to help you with your tasks.

 

Please update me on how it goes. I want to make sure everything is taken care of. I'll always be right here if you need assistance with managing your inventories. Have a great day!

Jul 15, 2022 4:54 PM UTC

I am using Web connector for Item import