我一直在研究 QuickBooks 与 python 的集成,当从 python 在 QB 桌面上创建值时,我遇到了这个错误“QuickBooks 在解析提供的 XML 文本流时发现错误”。 我的 xml 输入就像
<?xml version='1.0' encoding='UTF-8'?>
<?qbxml version="8.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<ItemInventoryAddRq>
<ItemInventoryAdd>
<Name>Pencil</Name>
<IncomeAccountRef>
<FullName>Other Expenses</FullName>
</IncomeAccountRef>
<AssetAccountRef>
<FullName>Inventory Asset</FullName>
</AssetAccountRef>
<COGSAccountRef>
<FullName>Cost of Goods Sold</FullName>
</COGSAccountRef>
</ItemInventoryAdd>
</ItemInventoryAddRq>
</QBXMLMsgsRq>
</QBXML>
我需要知道为什么会发生此错误以及如何克服此错误
最佳答案
您可以使用 QB SDK 附带的验证器应用程序 qbValidator.exe
来获取有关错误的更多详细信息。您可以从这里找到在计算机上安装和定位它的帮助:https://help.developer.intuit.com/s/article/QBXML-Validator .
关于python - QuickBooks 在传递值时解析提供的 XML 文本流时发现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57075615/