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

CashBookEntry_SetDebtorInvoiceNumber throws exception

0
Hey.

I have created DebtorPayment CashBook where I want to register all the payments for Manual Customer Invoices(from another CashBook).
When I'm calling CashBookEntry_SetDebtorInvoiceNumber, exception is being thrown suds.WebFault: Server raised fault: 'Economic.Api.Exceptions.IntegrityException(E06300): The debtor invoice number must refer to either an invoice or a reminder. {id=1455260111}'
All other CashBookEntry_Set* methods are working as expected.
This error message makes no sense to me, since I can input any non-existing invoice number in GUI and it works.
created Apr 20, 2011 by Pawel
0% Accept Rate
Q 1 A 1 C 0

1 Answer

0
Hi Pawel,

It is is true that the API is slightly more restrictive than the GUI in this matter.

If you add an invoice number it must correspond to an invoice that has already been registered. If you do not add an invoice number it will ignore it.
answered Mar 6, 2013 by nkn
Visma e-conomic A/S
...