【问题标题】:Error adding the invoice in QuickBooks. Invalid reference to QB customer在 QuickBooks 中添加发票时出错。对 QB 客户的引用无效
【发布时间】:2014-11-30 21:25:41
【问题描述】:

发票中对 QuickBooks 客户“ABS,JLMN”的引用无效。
QuickBooks 错误消息:参数无效。列表中不存在指定的记录。

<InvoiceAddRq requestID = "***">
<InvoiceAdd>
<CustomerRef>
<FullName>ABS, JLMN</FullName>
</CustomerRef>
<TxnDate>2014-10-31</TxnDate>
<TermsRef>
<FullName>*Proper existing term*</FullName>
</TermsRef>
<DueDate>2014-11-30</DueDate>
<InvoiceLineAdd>
<ItemRef>
<FullName>*Proper existing term*</FullName>
</ItemRef>
<Desc>*String Value*</Desc>
<Rate>0.00</Rate>
</InvoiceLineAdd>
<InvoiceLineAdd>
<ItemRef>
<FullName>*Proper existing term*</FullName>
</ItemRef>
<Desc>*Strings of text*</Desc>
<Rate>0.00</Rate>
</InvoiceLineAdd>
<InvoiceLineAdd>
<ItemRef>
<FullName>*Proper existing term*</FullName>
</ItemRef>
<Desc>*Strings of text*</Desc>
<Rate>0.00</Rate>
</InvoiceLineAdd>
<InvoiceLineAdd>
<ItemRef>
<FullName>*Proper existing term*</FullName>
</ItemRef>
<Desc>*Strings of text*</Desc>
<Rate>0.00</Rate>
</InvoiceLineAdd>
</InvoiceAdd>
<IncludeRetElement>TxnID</IncludeRetElement>
<IncludeRetElement>CustomerRef</IncludeRetElement>
<IncludeRetElement>ItemRef</IncludeRetElement>
</InvoiceAddRq>

请注意,“*”中提到的值只是占位符。
客户 ABS,JLMN 出现在快速书籍中,但我仍然收到此错误。这不是生成请求 XML 时的唯一请求,还有其他客户也具有相同的属性。对于这些客户,我没有收到任何错误。谁能告诉我这里可能是什么问题?



我的公司文件有损坏的可能性吗?作为我要求的一部分,我正在使用公司文件执行许多 InvoiceADD 和 CustomerADD 请求。那么这可能是这里出现问题的原因吗?
如果您需要更多信息,请告诉我。
谢谢。

【问题讨论】:

标签: c# quickbooks quickbooks-online qbxml qbfc


【解决方案1】:
There is an invalid reference to **QuickBooks** Customer "ABS, JLMN" in the Invoice.

Quickbooks 中不存在客户“ABS,JLMN”并且您尝试添加针对该客户的发票时,会发生此错误。

如果 Quickbooks 中已经存在客户,则在您的 requestXML 中解析客户名称。特殊字符也会产生错误。

【讨论】:

  • 您能否详细解释一下您在 requestXML 中解析客户名称的含义。谢谢
  • 只需使用 SDK 提供的 XML Validator 验证您的 XML
  • 感谢您的回复。是的,我已经使用 xml 验证器验证了我的 XML 请求,但仍然出现上述错误,并且我确保客户存在于 Quickbooks 中。任何想法出了什么问题?
  • 共享 QWC 日志文件并验证客户必须在 QB 中处于活动状态。
猜你喜欢
  • 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
相关资源
最近更新 更多