Notifications
Announcements
No record found.
Hi All, i am curious to know what might be the business scenario where OCC could be turned off ?
Thanks,
San
*This post is locked for comments
Hi ,
when OCC is off the record is locked when it is fetched from the database, so it was used in Dynamics Ax 3.0 , we could use in a scenario where users are not allowed to see a record if another user is viewing the record.
Regards,
Bilal
Thanks for the response Bilal. could you think of a real time Business scenario for this ?
There are a bunch of tables in standard application that are not OccEnabled.
A good example is InventSum/InventSumDelta, where a failure to update the record is very expensive to attempt again, and potentially the data could already be different. So we ensure it happens strictly one by one.
Enforce optimistic concurrency in situations where the optimistic model would improve concurrency and throughput when compared with the pessimistic model. For example, where more records are locked than are actually updated. Use OCC if a table is never updated or deleted from code but updated only by a client through a form.
Use pessimistic concurrency under the following conditions:
• Serialization logic exists that requires an update lock on a record in the database. The serializing select statement should include the pessimisticLock keyword. The logic fails if the OccEnabled property is changed on the table.
• Update conflicts are likely (otherwise, extra time is used on retries).
If only a few business scenarios require a different concurrency model rather than the one already set on the table, handle the scenarios individually by applying a line of statement-level concurrency code.
Please refer following link for more details
msdn.microsoft.com/.../bb190073.aspx
Please verify and update us if this helps you.
Well, several years later, this issue still occurs, although for me this is the FIRST time I've ever had this issue in all of the 100+ GP upgrades I've done. Upgrading from 2015R2 to 2018R2.
Just inserted the -1 into all of the company ID's that were missing it (in this case 18, 11, and 20):
insert into dynamics.dbo.sy20020 values ('-1', '18', '0')insert into dynamics.dbo.sy20020 values ('-1', '11', '0')insert into dynamics.dbo.sy20020 values ('-1', '20', '0')
No more error. Why does this happen?
Rob, it looks like you're in a completely wrong thread - different topic, different product (Dynamics AX, not Dynamics GP).
Martin you're right. For some reason there is a problem with the community.dynamics.com - could you escalate to Microsoft to see what's going on? This is the second time its happened where I'm viewing a GP thread, and I reply, but it posts it in another forum. Last time I replied and it posted it in CRM. I've never even been in the AX or the CRM forums, so I'm not sure why it's posting my GP replies to a different place.
Rob
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2