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

Account_GetDataArray - Input array cannot be null error

0
Trying to use the Account_GetDataArray function to retrieve the chart of accounts data all at once so I don't have to make multiple calls to get the Account Name etc.
 
I've call the "GetAll" function with no problem - it happily retrieves all the accounts.
 
$result = $client->__soapCall("Account_GetAll", array());
 
Then I try the GetDataArray with the $result->Account_GetAllResult from the first call...and it returns with an error:
 
$result2 = $client->__soapCall("Account_GetDataArray",array($result->Account_GetAllResult)); 
 
Fatal error: Uncaught SoapFault exception: [soap:Client] Economic.Api.Exceptions.ValidationException(E04010): Input array cannot be null. (id=7b06ea5f-e5f4-4b0a-b596-d62ffb4b715b) in /Users/xxxxx/Sites/revisotest3.php:84 Stack trace: #0 /Users/xxxxx/Sites/revisotest3.php(84): SoapClient->__soapCall('Account_GetData...', Array) #1 {main} thrown in /Users/xxxxx/Sites/revisotest3.php on line 84
 
I've tried creating the input array manually, but with the same result. 
 
Any help would be appreciated.
 
Thanks
 
Greg
 
 
created Jun 30, 2016 by Gbateup
0% Accept Rate
Q 1 A 0 C 0

1 Answer

0
Hi Greg,

I can see you are trying to connect to the Reviso API. This is no longer part of e-conomic, so your request does not exist in our logs, and I cannot see what is going wrong.

You need to contact Reviso at https://www.reviso.com/developer
answered Jul 14, 2016 by rbb
Visma e-conomic A/S
...