Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Capturing web services errors with WCF
We are finding that when using WCF to make web service calls, we are unable to retrive any error codes that may be generated by Netsuite. When stepping through the code, the error is being created and is returned correctly, but will then fail and return a FormatException to the calling code. So far we have observed this on a SESSION_TIMED_OUT error and an INVALID_LOGIN_CREDENTIALS error, however we believe that this will be common across all errors. Both of these return the following error:
System.FormatException : Additional XML content is present in the fault detail element. Only a single element is allowed.
0