cancel
Showing results for 
Search instead for 
Did you mean: 

Magento SAP error on Creating Config Product

Magento SAP error on Creating Config Product

Anyone has any thoughts?

 

While posting API to Magento while creating a configurable product we are getting some fatal error in response.

{
"messages": {
"error": [
{
"code": 500,
"message": "Fatal Error: 'Uncaught Error: Call to undefined method Magento\\Catalog\\Model\\Product\\Type\\Simple::getConfigurableAttributeCollection() in /home/storm/sites/test/vendor/magento/module-configurable-product/Helper/Product/Options/Loader.php:52\nStack trace:\n#0 /home/storm/sites/test/vendor/magento/module-configurable-product/Model/Product/ReadHandler.php(48): Magento\\ConfigurableProduct\\Helper\\Product\\Options\\Loader->load(Object(Magento\\Catalog\\Model\\Product\\Interceptor))\n#1 /home/storm/sites/test/vendor/magento/framework/EntityManager/Operation/Read/ReadExtensions.php(48): Magento\\ConfigurableProduct\\Model\\Product\\ReadHandler->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#2 /home/storm/sites/test/vendor/magento/framework/EntityManager/Operation/Read.php(112): Magento\\Framework\\EntityManager\\Operation\\Read\\ReadExtensions->execute(Object(Magento\\Catalog\\Model\\Product\\Interceptor), Array)\n#3 /home/storm/sites/test/vendor/magento/framework/EntityManager/E' in '/home/storm/sites/test/vendor/magento/module-configurable-product/Helper/Product/Options/Loader.php' on line 52",
"trace": "Trace is not available."
}
]
}