<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div>Hi Patrick,</div>
<div><br>
</div>
<div>What does</div>
<div>SELECT * FROM `user` <span style="font-family: Calibri, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">WHERE ((`id` = 113) AND (`lock_version` = 1271));</span></div>
<div><span style="font-family: Calibri, sans-serif; font-size: 14.6667px; background-color: rgb(255, 255, 255); display: inline !important">say?</span></div>
<div><br>
</div>
<div>p</div>
<div><br>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> archivesspace_users_group-bounces@lyralists.lyrasis.org <archivesspace_users_group-bounces@lyralists.lyrasis.org> on behalf of Galligan, Patrick
<PGalligan@rockarch.org><br>
<b>Sent:</b> 02 December 2021 16:57<br>
<b>To:</b> Archivesspace Users Group <archivesspace_users_group@lyralists.lyrasis.org><br>
<b>Subject:</b> [Archivesspace_Users_Group] Optimistic locking error</font>
<div> </div>
</div>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Hi all,</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">I’m trying to diagnose and fix a warning I’m seeing in our AS log files every 12 or 13 seconds:</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Got an optimistic locking error when updating user: Attempt to update object did not result in a single row modification (SQL: UPDATE `user` SET `system_mtime` = '2021-12-02 16:52:37', `user_mtime` = '2021-12-02 16:52:37', `lock_version`
= 1272 WHERE ((`id` = 113) AND (`lock_version` = 1271)) LIMIT 1)</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">I can delete the user, but if I remake it with the same username, the warning comes back. If I leave the user open for editing, I get the “This record has been updated by another user. Please refresh the page to access the latest
version,” message in the UI.</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Any idea how to fix this issue? I’d prefer to be able to keep the username the same. I’m not sure why the system thinks there are two different lock versions associated with the record.</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Thanks,</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Patrick Galligan</span></p>
<p class="x_MsoNormal" style="margin: 0in; font-size: 12pt; font-family: Calibri, sans-serif;">
<span style="font-size:11.0pt">Rockefeller Archive Center</span></p>
</div>
</div>
</body>
</html>