Skip Navigation
Expand
  • Advanced SearchOpens new dialog
    Enter plus (+) or minus (-) signs in search terms to make a word required or excluded
    Search Tips
    Filter by product
    Filter by category
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.
Notify Me
The page will refresh upon submission. Any pending input will be lost.