我正在通过客户名称调用CustomerQuery,以获取Id。我的代码已经运行了很长一段时间,没有任何更改。现在,它返回IdsException 'ResponseStream is null or empty.‘’。下面是我的代码:
Dim CustomerQuery as new Intuit.Ipp.Data.Qbo.CustomerQuery
CustomerQuery.Name = CustomerName
Dim qboCustomers as IEnumerable(Of Intuit.Ipp.Data.Qbo.Customer) = CustomerQuery.ExecuteQuery(of Intuit.Ipp.Data.Qbo.Customer)(context)
If qboCustomers.Count>0 then
Return qboCustomers(0).Id.Value
Else
Return ""
End If我认为,即使没有匹配,查询也不应该为null或空。我认为计数应该是0。或者,至少我相信它在过去是这样的。我说错了吗?
发布于 2013-11-06 02:08:56
查询中的特殊字符导致异常。你需要先处理它们。有关在V3服务中查询时转义特殊字符的解决方案- https://gist.github.com/IntuitDeveloperRelations/6582149,请参阅此解决方案
https://stackoverflow.com/questions/19778711
复制相似问题