intuit/QuickBooks-V3-DotNET-SDK

More detailed exceptions

tjoubert opened this issue · 9 comments

I am using the SDK in a .NET 6.0 project. When I call the API to add or update an entity in QuickBooks and there is a validation error (for example a missing account reference), the SDK throws an Intuit.Ipp.Exception.IdsException with Message "BadRequest", that's it!
It will be nice to also include details about what is missing. I noticed that this is available in .NET classic versions like .NET 4.5.

Thanks @tjoubert for the feedback... will try to include in the next releases

We support .Net 6.1, 7.2 n .net standard for this sdk. The inner exception should have all the details and otherwise, you can check the readme for enabling logs for the SDK. That has all the details

We support .Net 6.1, 7.2 n .net standard for this sdk. The inner exception should have all the details and otherwise, you can check the readme for enabling logs for the SDK. That has all the details

There is no InnerException on the IdsException object.
It may be true that enabling logs would report the details, but I need to report the issue to the individual user at the point of pushing data to QuickBooks Online. So I need it at that time, not being lost in some server-side hidden log file somewhere.

We support .Net 6.1, 7.2 n .net standard for this sdk. The inner exception should have all the details and otherwise, you can check the readme for enabling logs for the SDK. That has all the details

You are wrong to close this issue. Please solve it before you do.

We support .Net 6.1, 7.2 n .net standard for this sdk. The inner exception should have all the details and otherwise, you can check the readme for enabling logs for the SDK. That has all the details

You are wrong to close this issue. Please solve it before you do.

I've just run it again. In NET 4.5, there is the InnerException object on the IdsException, but it's not present in. NET 6.0.

The idsexception has all the details although a bit buried. @rkasaraneni20 can find the right details for you but here is what I have from some other old files I had for a similar issue.

@tjoubert Our solution is on .NET Standard 2.0 and we support all the samples and in-depth error detailing which are supported with this framework. Based on Microsoft release notes, .NET 6.0 is supported from .NET Standard 2.1. I assume because of this compatibility some of the features might be broken. As of now, we have no plans in pipeline to upgrade to 2.1. Will keep you posted if we plan to migrate or i have any more details