Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9146

Re: Document Lifecycle Event (upp.user_account. Loaded) script exception: The document has been changed by another user, and your changes cannot be saved. You must discard these changes and reload the document.

$
0
0

Hello Laura,

 

The issue itself (concurrent modification) usually happens because of incorrectly coded scripts. Generally, triggering a .save() action on any BO has to be done with great care and with a good understanding of script sequentiality.

 

From the information provided it's not possible to identify 'why' the exception is triggered, only that it is triggered by the User Account Loaded script.

The error message doesn't clearly identify which object it applies to, and not even the object type.

For example, you could update an MA which has a script that searches for an User Account. Then the User Loaded script could trigger the exact same error for a related RFX (if incorrectly coded)... and the error message would be the same.

 

For investigations you will need to:

- get more information out of the logs, including stack traces and identify the full chain of events that leads to this error

- search for any .save() statements in User Account Loaded script and check if the requirement to have that save statement is valid... also try to identify use-cases in which the save statement could be in conflict with script sequentiality.

 

Hope this is helpful.

 

Bogdan Toma


Viewing all articles
Browse latest Browse all 9146

Trending Articles