ICashBookEntryData The entity already exists?

Forum for .NET developers using the E-conomic API.
Exchange your ideas, tip and tricks using the API.
Best Practices

ICashBookEntryData The entity already exists?

Postby ancon » Mon Oct 24, 2011 2:53 pm

First time i use:
myCashBookEntry = _session.CashBookEntry.CreateFinanceVoucher(cashBook, myAccount, myContraAccount);
Second time i use
ICashBookEntryData myCashBookEntryData = _session.CashBookEntryData.GetData(myCashBookEntry);
//some updates to myCashBookEntryData and then i do this
_session.CashBookEntry.CreateFromData(myCashBookEntryData);
Then i get the error: "The entity already exists"

How should I do?
I want to create several rows with the same verification number.
If i use the first line for every row i t works but the i get different verification number for each row and i want the same number for every row.
-
ancon
 
Posts: 1
Joined: Thu Nov 25, 2010 11:41 am

Return to .NET



cron