Quantcast
Channel: e-conomic Global API Forum
Viewing all articles
Browse latest Browse all 2527

Account_GetDataArray - Input array cannot be null error

$
0
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
 
 

Viewing all articles
Browse latest Browse all 2527

Trending Articles