cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Inpriya01
Level: Powered On

Overwrite record in model driven app

Hello Experts,

I think there is a bug in Model driven Apps, I observed data being overwritten if two users are writing to same record simultaneously.

Example:

Suppose User A open a record first and simultaneously User B also open same record then without any alert both users are allowed to make changes to the data.

I guess this is wrong, if User A start editing first then user B must be prompted with an error message.

Have you also noticed it??

 

thanks in advance.

 

2 REPLIES 2
Highlighted

Re: Overwrite record in model driven app

There is no way to prevent this happening. What you're seeing is known as 'optimistic locking', and CDS and almost all modern cloud-based applications work this way. What you're asking for is known as 'pessimistic locking'; this was common for traditional client-server applications running on desktops, but is not really viable for cloud-based apps as there is no good way to know if a user is intending to edit a record, nor when they have stopped looking at the record.

You can't change this behaviour, but you can use auditing to identify if 2 users did make simultaneous changes

Community Support Team
Community Support Team

Re: Overwrite record in model driven app

HI @Inpriya01 ,

Actually, it is an known issue with the 'Optimistic Concurrency Lock' within Model-Driven app form (D365 CRM Form). I agree with @DavidJennaway 's thought almost, I afraid that there is no way to fix this issue in PowerApps currently.

 

As an alternative solution, I think SDK Calls and Web API could achieve your needs. Please check the alternative solution mentioned from @Abhishek Kumar  within the following article:

https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/193312/how-to-prevent-2-people-fro...

 

If you would like this fix functionality to be released in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,956)