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

Getting the error String value exceeds maximum length.

0
Helo,

We have integrated this API for one of our client using PHP.

When we call the following function, we receive an error message.

The function call is as follows:

$result = $this->client->CurrentInvoice_CreateFromData(array( "data"=>$orderdata ))->CurrentInvoice_CreateFromDataResult->Id;

The error message is:

Economic.Api.Exceptions.ValidationException(E04000): String value exceeds maximum length.

 

Which data does it mean? This is rather urgent, hope to get some info soon.
created Mar 30, 2016 by scwebs
100% Accept Rate
Q 1 A 0 C 0

1 Answer

0
 
Best answer
Hi,

It means that in one of your invoice drafts in your array you're exceeding the maximum String length supported.

A good tip is to use our RestDocs for insight into the limitations of the fields on an invoice:
http://restdocs.e-conomic.com/#post-invoices-experimental-drafts
answered Mar 30, 2016 by olej
selected Mar 30, 2016 by scwebs
Visma e-conomic A/S
...