Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Partner Program >

xero api There is an error in XML document (1, 2)

Started by Vipul Rajanee -   in Partner Program

Hi all,

I integrated xero partner api in my C# code , it running perfectly. But sometimes i got error "xero api There is an error in XML document (1, 2)" while post invoice.

Any suggestion, why i got this error?
or
what is solution for it?

Thanks in advance

Regards,
Vipul
Hi Vipul,

Can you help me that what process you followed to configure partner applications in .NET.
 

abdul khursheed  

@Vipul, please check your XML input and format which seems to be causing the error.
 

Samitha N (Xero Staff)  

Hi Samitah,

Thanks for reply.

I got this error :System.InvalidOperationException: There is an error in XML document (1, 2). ---> System.InvalidOperationException: <ApiException xmlns=''> was not expected.
 

Vipul Rajanee  

Hi Vipul,

May I know the application/provider name that you are using so we can check its logs?

I searched for applications registered under your name but I only found several Private applications but not a Partner one.
 

W. Abdullah (Community Manager)  

Hi Abdullah,

Thanks for reply.

I resolved this issue. Problem is wrong Tax type with account code.
 

Vipul Rajanee