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

Passing ID when calling DebtorContact_CreateFromData



As answered by the related post, I can not pass a "Number" when creating a debtor contact.
Is it possible to pass an ID instead, that the SOAP will actually use?

The reason I want this, is that if I create multiple contacts, I will get the following error, if I just pass "0" as the ID and/or Number.

Economic.Api.Exceptions.IntegrityException(E06010): The entity cannot be created because the key already exists.

I can "fix" this, by putting a manual delay on each call, but that is very inconvenient since I have to create ~6000 contacts programatically. It seems that the endpoint need "some time" before it can assign a new ID to a contact, since the last one was created.


Thank you in advance!

- Mathias Jakobsen

created Dec 21, 2015 by mathiasjakobsen
33% Accept Rate
Q 3 A 0 C 3

1 Answer


Hi Mathias

Have you tried using DebtorContact_CreateFromDataArray ?

answered Dec 21, 2015 by olej
Visma e-conomic A/S