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

Encoding:object has no 'Number' property, when it do have?!

try {
    $debtor_update = $client-Debtor_UpdateFromData(array(
      'data' = (object) array(
      'Handle' = $debtorHandle,
      'Number' = $debtorHandle-Number,
      'DebtorGroupHandle' = $debtor_group_handles,
      'IsAccessible' = true,
      'VatZone' = 'HomeCountry',
      'Email' = 'test@testdk',
      'Name' = 'lala dada'
} catch (Exception $e) {
    throw new Exception('Could not update debtor; ' $e-getMessage());

Is my code. I simply do not understand why this would return:

Could not update debtor; SOAP-ERROR: Encoding: object has no 'Number' property

When clearly, 'Number' property is included in the array?

I checked with the documentation I could find: https://www.e-conomic.com/secure/api1/E ... teFromData and it seems to be right, so whats up with this error, and how can I solve it??

Hope my question can be answered quicker this time, it is an open forum afterall...
created Apr 1, 2012 by azddin
0% Accept Rate
Q 3 A 2 C 0

1 Answer

Hey there, did you ever figure this out?  I'm having the same exact issue.  I have 2 different functions that are very similar (one variable difference) and one works, the other throws the error you described.
answered Oct 30, 2012 by tomjung09
Visma e-conomic A/S