Error saving Item

I am developing a plugin whose background, which operates in an ES environment, can modify and save the configuration of the items, sometimes it happens that changing the configuration with the MC during the writing phase the Platform generates the error "Another user has already updated the device. Cannot save the changes. " and this happens, of course, when it is the same Item … is there a way to avoid that error and save the configuration?

Many thanks,

Freddy

Let me ask you one question first, where do you see the error? In Management Client or in Event Server log?

It can happen in both environments, but as the plugin works it is more likely in the MC environment.

Because the problem I use try-catch and saw the error in both cases

Many thanks,

Freddy

Even when not using plugins it is easy to get into a situation where two users, each using the Management Client, will cause this situation. If one user make changes, the other user cannot make changes but will get the message and cannot make changes before doing a refresh in the Management Client.

On the subject of refresh-

Please see this post - https://developer.milestonesys.com/s/feed/0D53X00007OMHmLSAX

The changing configurations with the Management Client during the writing phase the Platform is not just a UI change/refresh but a restart and update of much of the client. Milestone Development is concerned if an auto-refresh is introduced by a plugin and this refresh would interrupt or disrupt whatever else the user is doing in the Management Client.

Thanks Rie, I have read the post and understand the problem. I will try to use the refresh only when saving configurations with the MC.

Freddy