cancel
Showing results for 
Search instead for 
Did you mean: 
Krisjl21
Level 1

UTFDataFormatException, invalid byte 1 (-) of a 1-byte sequence.SAXParseException, help?

Developed an application using the SDK to import into QB.  Was working with previous version, but now fails with QB PRO 2020.  This is a VB.NET application in VS2010.  I am not getting an error connecting to the current QB application that is in session with the required company file.  I made sure the connection to QB was made by removing the permissions for this application.  So, the next time we ran it, QB came up with the outside application permission windows - and we granted the application permissions to QB.

 

This is the error:

qb2020.png

 

This is the code, error occurs on last line:

Dim requestMsgSet3 As IMsgSetRequest = sessionManager.getMsgSetRequest()
Dim iCustomerQuery As ICustomerQuery = requestMsgSet3.AppendCustomerQueryRq()
Dim responseMsgSet2 As IMsgSetResponse = sessionManager.doRequest(False, requestMsgSet3)

 

Here is the XML, using requestMsgSet3.ToXMLString command:

<?xml version="1.0" encoding="utf-8"?>
<?qbxml version="13.0"?>
<QBXML>
<QBXMLMsgsRq onError = "stopOnError">
<CustomerQueryRq requestID = "0"/>
</QBXMLMsgsRq>
</QBXML>

I ran this through the QB XML Validator and it is valid.

 

I'm hoping this is something easy.  I haven't dug too deep yet, was hoping the Community could help before I spent too much time.

 

Thanks in advance,

Kris

Solved
Best answer April 07, 2020

Best Answers
Ashley H
QuickBooks Team

UTFDataFormatException, invalid byte 1 (-) of a 1-byte sequence.SAXParseException, help?

Thanks for reaching out to the Community, @Krisjl21.

 

I recommend reaching out to our Intuit Developer Support for assistance on this topic. Rest assured, they can provide you with information about app integrations for QuickBooks Desktop, along with any other details that you seek.

 

Let me know how the conversation goes for you! I'm always here if you have any other questions or concerns. Have a beautiful day. 

View solution in original post

1 Comment 1
Ashley H
QuickBooks Team

UTFDataFormatException, invalid byte 1 (-) of a 1-byte sequence.SAXParseException, help?

Thanks for reaching out to the Community, @Krisjl21.

 

I recommend reaching out to our Intuit Developer Support for assistance on this topic. Rest assured, they can provide you with information about app integrations for QuickBooks Desktop, along with any other details that you seek.

 

Let me know how the conversation goes for you! I'm always here if you have any other questions or concerns. Have a beautiful day. 

Need to get in touch?

Contact us