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

Product_GetDataArray stopped working ?

0
Hi,

I need some help from someone that can catch the little things I can't see.

I have a PHP script that is used to extract some data from our economics system, and import these data into our intranet database. It has been working flawlesly for tha last year or so. Yesterday (more or less) it stopped working.

Please take a look at the three code snippets below. The first two work just fine, no problem. I get all the data I need for my 338 debtors and for my 225 creditors.

The third one has always worked, and has given me all data for some 3100 parts. But not now...

As far as I can see, I get the ProductHandles. But the code never gets passed the ProductDataObjects-line. It hangs, as if if there is no response at all.

 <snip>
  $debtorHandles = $client->Debtor_GetAll()->Debtor_GetAllResult->DebtorHandle;
  $debtorDataObjects = $client->Debtor_GetDataArray(array('entityHandles' => $debtorHandles))->Debtor_GetDataArrayResult->DebtorData;
 </snip>

 <snip>
  $creditorHandles = $client->Creditor_GetAll()->Creditor_GetAllResult->CreditorHandle;
  $creditorDataObjects = $client->Creditor_GetDataArray(array('entityHandles' => $creditorHandles))->Creditor_GetDataArrayResult->CreditorData;
 </snip>

 <snip>
  $productHandles = $client->Product_GetAll()->Product_GetAllResult->ProductHandle;
  $productDataObjects = $client->Product_GetDataArray(array('entityHandles' => $productHandles))->Product_GetDataArrayResult->ProductData;
 </snip>
 

Any one, who can tell me why this has stopped working ?

Your help will be much appreciated.

Thank you in advance.
created Sep 3, 2015 by thomas.k
0% Accept Rate
Q 2 A 1 C 3
I also get an internal error from e-conomic API when fetching product dataarray. But only when having thousands of products - when having fewer products, the dataarray is returned. This is really a big problem since we have applications which are fetching dataarray for all products.
That is what I suspected. The three data snippets basically do exactly the same and they all look alike. The only "real" difference is the number of debtors (300+), creditors (200+) and products (3000+).

1 Answer

0
Hi Thomas and JHRoss,

We are aware of the problem and expect to have a fix out later tonight.
answered Sep 3, 2015 by rbb
Yahoo !!!  
Everything is back to normal. Thank you very much.
Visma e-conomic A/S
...