QBWC库存模块/非库存模块给我错误“在解析提供的XML文本流时QuickBooks发现错误". [英] QBWC Inventory Mod /NonInventory Mod gives me error "QuickBooks found an error when parsing the provided XML text stream"

查看:111
本文介绍了QBWC库存模块/非库存模块给我错误“在解析提供的XML文本流时QuickBooks发现错误".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我用于商品更新的qbxml.
我已经在这里复制了xml

Here is my qbxml for item update.
I have copied my xml here

<?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".我也检查了顺序.如何检查qbxml中的QBWC?

It gives me error "QuickBooks found an error when parsing the provided XML text stream". I have checked sequence also. How to check qbxml for QBWC?

推荐答案

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

Version 6.0 of the SDK does not support IncomeAccountRef as part of an ItemInventoryMod or ItemNonInventoryMod. You can view this using the On Screen Reference (https://developer-static.intuit.com/qbSDK-current/Common/newOSR/index.html) You can set the slider to version 6.0 to see what fields are allowed. If you change your request to use version 8.0 instead, which does include the IncomeAccountRef, the file validates.

我还使用了通过SDK安装的QBXML验证程序工具来验证XML.

I also used the QBXML Validator tool that gets installed wiht the SDK to validate the XML.

这篇关于QBWC库存模块/非库存模块给我错误“在解析提供的XML文本流时QuickBooks发现错误".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆