检索客户时出现 Intuit.Ipp.E​​xception.IdsError [英] Intuit.Ipp.Exception.IdsError while retrieving customers

查看:25
本文介绍了检索客户时出现 Intuit.Ipp.E​​xception.IdsError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用 vb.net 编写的 Intuit API V3 的 Web 应用程序.在使用 QuickBooks 桌面数据时,我的应用程序一直在完美运行.我今天开始测试 QuickBooks Online 数据.我第一次使用 QuickBooks Online 用户登录时,它检索了客户列表.后续尝试检索客户列表失败.

I have a web application using Intuit API V3 written in vb.net. My application has been working flawlessly while using QuickBooks desktop data. I began testing QuickBooks Online data today. The first time I logged in with my QuickBooks Online user it retrieved the customer list. Subsequent tries to retrieve the customer list fail.

我收到的错误信息是:类型的故障异常:已生成 SystemFault."内部异常:System.Collections.Generic.ICollection(Of Intuit.Ipp.E​​xception.IdsError)

The error message I receive is: "Fault Exception of type: SystemFault has been generated." Inner Exception: System.Collections.Generic.ICollection(Of Intuit.Ipp.Exception.IdsError)

     Dim customerList As System.Collections.ObjectModel.ReadOnlyCollection(Of Customer)

            '* create service
            Dim service As DataService = ValidateService(aPage)

            '* create a customer object
            Dim customerObject As Customer = New Customer()

            If aBool = True Then
                customerObject.CompanyName = ""
                '* get the customers
                customerList = service.FindAll(customerObject, 1, 500)
            Else

它在customerList = service.FindAll(customerObject, 1, 500)"行上失败

It fails on the line "customerList = service.FindAll(customerObject, 1, 500)"

对此事的任何帮助将不胜感激,谢谢.

Any help on this matter would be greatly appreciated, thank you.

推荐答案

通过反复试验并逐步执行我的项目几天,我发现我的应用程序没有正确存储 appToken,因此它一直以空的形式返回细绳.当服务被调用时,它没有正确的凭据来成功进行调用.我能够解决 appToken 存储问题,并且应用程序按预期运行.

Through trial and error and stepping through my project for a couple days I figured out that my application was not storing the appToken properly so it kept coming back as an empty string. When the service was called it didn't have the correct credentials to successfully make the call. I was able to fix the issue with the appToken storage and the application is working as expected.

这篇关于检索客户时出现 Intuit.Ipp.E​​xception.IdsError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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