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_UpdateFromDataArray error E06000 No entity to update


Hi, I need to update cashbook with new BankPaymentCreditorId , i haven't found the list of mandatory fields so i inserted my field  then i tried to do request and i get required fields one by one, after that i get error (Economic.Api.Exceptions.IntegrityException(E06000): No entity to update (id=8456d8fe-40c3-4c5a-a951-...) at row index:0)

data what i send to CashBookEntry_UpdateFromDataArray:

'dataArray' => [
  'CashBookEntryData' =>[
    'BankPaymentTypeHandle' => [
                            'Number' => 7
    'BankPaymentCreditorId' => $bankPaymentCreditorId,
      'Type' => 'CreditorInvoice',
    'Date' => $dateTime->format('Y-m-d\T00:00:00'), 
    'VoucherNumber' => $voucher,
    'AmountDefaultCurrency' => $price,
    'Amount' => $price,

The same error i get when i send request to CashBookEntry_UpdateFromData

Maybe i'm doing somthing wrong?

created Nov 26, 2016 by anonymous

1 Answer

Hi Pasho

I don't see you telling the SOAP method which cashBookEntry you're trying to update as you're not setting a handle.
CashBookEntry handles are a composite handle containing 2 IDs: ID1 and ID2.
Both must be set on the handle as they refer to the cashbook and the entry of that cashbook.
answered Nov 28, 2016 by olej
Visma e-conomic A/S