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

An internal error has occurred usin Product_CreateFromData

0
Hi,

I'm using Product_CreateFromData to create products, but I keep getting this error:

Economic.Api.Exceptions.ServerException(E00000): An internal error has occurred. (id=c493bfe1-0d56-4abc-a009-297ceddec2a6)

How do I know what it means?

- Morten
created Mar 18, 2013 by mortenb
50% Accept Rate
Q 2 A 0 C 0

1 Answer

0

Economic.Api.Exceptions.ServerException(E00000): An internal error has occurred. (id=c493bfe1-0d56-4abc-a009-297ceddec2a6)

Hi Morten,

This type of Internal Exceptions are comes when , In the service method array expecting something but we are sending the data not correctly.So, Mismatching of data occurs, In your case you are sended the product data to service, But tha array can store in the for of index based.

$product_data =

    array(

    "Number" = > $product_id,

    "ProductGroupHandle" = >array("Number" => $ProductGroupHandle),

    similarly all properties Dynamically,

         );

I think you got all $product_data info...

Main problem you got when you call Product_CreateFromData service,

The short solution for that is ,

$res = $this->client->Product_CreateFromData(array("number" =>1, "data"=>$productdata));

Here you dont get Number and Internal Exceptions.

This is perfectly Works when you got $product_data Perfectly.

if is not works feel free to ask me.

Thanks&Regards

sudheer

 

     );

answered Mar 30, 2013 by sudheerphp
Visma e-conomic A/S
...