Collapse
Submit a Service Request
Contact Information for Technical Support
My Service Notifications
Function 'css_product_update' has lock defined. Lock[71] is already locked by some other user
Answer ID 12966 |
Last Review Date 03/18/2025
What is causing this error in my customization (Function 'css_product_update' has lock defined. Lock[71] is already locked by some other user)?
Environment:
Customization APIs including Connect for PHP API (CPHP)
Oracle B2C Service
Issue:
While implementing a new Custom Process Model (CPM) customization we have encountered the following error:
Function 'css_product_update' has lock defined. Lock[71] is already locked by some other user
The error occurs when the API save is run in the following code:
$ServiceProduct = RNCPHP\ServiceProduct::fetch(intval($obj->product->ID));
$ServiceProduct->DispositionLinks = new RNCPHP\ServiceDispositionDeltaArray();
$ServiceProduct->DispositionLinks[0] = new RNCPHP\ServiceDispositionDelta();
$ServiceProduct->DispositionLinks[0]->ServiceDisposition = RNCPHP\ServiceDisposition::fetch(intval($obj->disposition->ID));
$ServiceProduct->save(RNCPHP\RNObject::SuppressAll);
Resolution:
When Products/Categories/Dispositions are in edit mode in the agent console, a lock is placed, and any related objects cannot be created/updated. Hence this behavior is working as expected.