diff --git a/intaro.intarocrm/classes/general/ICrmOrderActions.php b/intaro.intarocrm/classes/general/ICrmOrderActions.php index b40f915f..55440954 100644 --- a/intaro.intarocrm/classes/general/ICrmOrderActions.php +++ b/intaro.intarocrm/classes/general/ICrmOrderActions.php @@ -904,7 +904,15 @@ else{ } if(!empty($arFields)) { - CSaleOrder::Update($order['externalId'], $arFields); + try { + CSaleOrder::Update($order['externalId'], $arFields); + } catch (Exception $e) { + self::eventLog( + 'ICrmOrderActions::orderHistory', 'CSaleOrder::Update', + $e->getCode() . ': ' . $e->getMessage() . ' (order external id: '.$order['externalId'].')' + ); + continue; + } } if(isset($order['status']) && $order['status']) {