this is my code

$URL='';(url of third party api)        
$simple  = simplexml_load_file($URL);

 foreach($simple->FEEDBACK as $result){


  $orderId =Mage::getModel('sales/order')->

  $order = Mage::getModel('sales/order')->load($orderId);


upto this code is working properly,when i try to use..


its give error as written in title,please help..

1 Answer 1


First: you don't have to load Order again after you loaded with increment_id. You can load $order:

$order = Mage::getModel('sales/order')->loadByIncrementId($order_ref);

Check if fields score, service_feedback and response exists in database table: sales_flat_order. I think these fields do not exists in table or the data you assign different than expected so you cannot save the order.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.