Followers

Sunday, June 28, 2015

Project Estimation Issues - Disable Optimistic Concurrency Control (OCC) in AX Property

Recently we have an issue regarding "Committed cost update conflict occurred due to another user process deleting the record or changing one or more fields in record" when running project estimation the following error dialog appeared.


Solution: 
Open: AOT > Data Dictionary > Tables > CostControlTransCommittedCost > OCCEnabled > No


Explanation:

To overcome this issue we need to disable OCC mode to No. previously in AX 3.0 you can only have PCC now you can chose which concurrency model to use Optimistic or Pessimistic.

When this mode is enabled, update run can fail as another process updates the same record, this cause to decreasing or reduction in database performance.

Optimistic Concurrency Control (OCC)
  • OCC - Only locks records from the time when the actual update is performed.
  • OCC - Records are locked for a shorter length of time.
  • OCC - Fewer resources are used to hold the locks during the update process.
  • OCC - If update fails, it must be retried, as it remain for other processes.
Pessimistic Concurrency Control (PCC)
  • PCC - locks reocrds as soon as they are fetched from the database for an update

No comments:

Post a Comment