【问题标题】:QBWC Inventory Mod /NonInventory Mod gives me error "QuickBooks found an error when parsing the provided XML text stream"QBWC Inventory Mod /NonInventory Mod 给我错误“QuickBooks 在解析提供的 XML 文本流时发现错误”
【发布时间】:2014-03-06 15:46:27
【问题描述】:

这是我用于项目更新的 qbxml。
我在这里复制了我的 xml

<?xml version="1.0" encoding="ISO-8859-1" ?> 
  <?qbxml version="6.0"?> 
- <QBXML>
- <QBXMLMsgsRq onError="stopOnError">
- <ItemInventoryModRq>
- <ItemInventoryMod>
  <ListID>80000064-1393879476</ListID> 
  <EditSequence>1393879476</EditSequence> 
  <Name>Abco Trading</Name> 
  <SalesDesc>Abco Trading</SalesDesc> 
- <IncomeAccountRef>
  <FullName>Income</FullName> 
  </IncomeAccountRef>
  <PurchaseDesc>Abco Trading</PurchaseDesc> 
  <PurchaseCost>0</PurchaseCost> 
- <COGSAccountRef>
  <FullName>Cost of Goods Sold</FullName> 
  </COGSAccountRef>
- <AssetAccountRef>
  <FullName>Inventory Asset</FullName> 
  </AssetAccountRef>
  </ItemInventoryMod>
  </ItemInventoryModRq>
  </QBXMLMsgsRq>
  </QBXML>

对于非库存物品模组

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
  <?qbxml version="6.0"?> 
- <QBXML>
- <QBXMLMsgsRq onError="stopOnError">
- <ItemNonInventoryModRq>
- <ItemNonInventoryMod>
  <ListID>80000069-1394118592</ListID> 
  <EditSequence>1394118592</EditSequence> 
  <Name>Dawson and Sons</Name> 
  <SalesDesc>Dawson and Sons</SalesDesc> 
- <IncomeAccountRef>
  <FullName>Income</FullName> 
  </IncomeAccountRef>
  <PurchaseDesc>Dawson and Sons</PurchaseDesc> 
  <PurchaseCost>0</PurchaseCost> 
- <ExpenseAccountRef>
  <FullName>Expense</FullName> 
  </ExpenseAccountRef>
  </ItemNonInventoryMod>
  </ItemNonInventoryModRq>
  </QBXMLMsgsRq>
  </QBXML>

它给了我错误“QuickBooks found an error when parsing the provided XML text stream”。我也检查了序列。 QBWC如何查看qbxml?

【问题讨论】:

    标签: xml parsing quickbooks


    【解决方案1】:

    6.0 版 SDK 不支持将 IncomeAccountRef 作为 ItemInventoryMod 或 ItemNonInventoryMod 的一部分。您可以使用屏幕参考 (https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html) 查看此内容。您可以将滑块设置为 6.0 版以查看允许的字段。如果您将请求更改为使用 8.0 版,其中确实包含 IncomeAccountRef,则该文件将进行验证。

    我还使用了随 SDK 一起安装的 QBXML Validator 工具来验证 XML。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多