API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

SOAP error when getting invoice data

I have .NET application based on e-conomic API, version of dlls is 1.4.16.

The code is like below:

   Dim allInvoices() As IInvoice = session.Invoice.FindByDate(dateInput, Date.MaxValue)
   Dim filteredInvoices() As IInvoice
   .. prepare a list of significant invoices and detailed data for them

Generally is working fine, except a single invoice. If I add this invoice to the filtered list and call GetDataArray function then I get an exception with error message "There is an error in XML document (2,1)".

If I inspect the invoice with the Watch window then I get the following errors for the below properties:

   DebtorAddress {"There is an error in XML document (1, 315)."}    System.InvalidOperationException
   DebtorCounty  {"To use this feature you must be logged on to a UK agreementnumber. (id=afe9115c-c231-40f7-be76-843270fb4e4b)"}

Is it anything which depends on my code or data?

Or is it an error caused by any omission in e-conomic API?
created Oct 24, 2014 by Taras Sharov
0% Accept Rate
Q 2 A 0 C 0

Visma e-conomic A/S