【发布时间】:2014-01-17 00:20:57
【问题描述】:
因为 V3 不支持恢复处于 SyncError 状态的 IDS 对象,所以我不得不使用 V2 恢复调用(位于 https://developer.intuit.com/docs/95_deprecated/qbd_v2/qbd_v2_reference/0100_calling_data_services/reverting_an_object)。不幸的是,我在固定客户方面遇到了一些麻烦。
发帖:https://services.intuit.com/sb/customer/v2/<RealmID>
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Revert xmlns="http://www.intuit.com/sb/cdm/v2" RequestId="7aa1d747cf5c58969a3bc638e0c820b1">
<Object xsi:type="Customer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Id idDomain="QB">6</Id>
<SyncToken>2</SyncToken>
</Object>
</Revert>
回复:
<?xml version=\"1.0\" ?>
<RestResponse xmlns=\"http://www.intuit.com/sb/cdm/v2\">
<Error RequestId=\"8c28d64de5c644079d10f0165b717258\">
<RequestName>ErrorRequest</RequestName>
<ProcessedTime>2014-01-17T00:03:35.627Z</ProcessedTime>
<ErrorCode>-2001</ErrorCode>
<ErrorDesc>cvc-complex-type.2.4.b: The content of element 'Object' is not complete. One of '{\"http://www.intuit.com/sb/cdm/v2\":MetaData, \"http://www.intuit.com/sb/cdm/v2\":ExternalKey, \"http://www.intuit.com/sb/cdm/v2\":Synchronized, \"http://www.intuit.com/sb/cdm/v2\":AlternateId, \"http://www.intuit.com/sb/cdm/v2\":CustomField, \"http://www.intuit.com/sb/cdm/v2\":Draft, \"http://www.intuit.com/sb/cdm/v2\":ObjectState, \"http://www.intuit.com/sb/cdm/v2\":PartyReferenceId, \"http://www.intuit.com/sb/cdm/v2\":TypeOf}' is expected.
</ErrorDesc>
</Error>
</RestResponse>
我不确定为什么在调用Revert 时需要其中一些元素。我的服务器上的数据无效,这就是为什么它首先处于错误状态。会不会是因为这个错误是在 V3 中创建的,而 V2 没有解决这个问题?
谢谢, 福雷斯特
【问题讨论】:
标签: intuit-partner-platform ipp-qbd-sync