{"id":7817,"date":"2015-03-12T15:38:53","date_gmt":"2015-03-12T15:38:53","guid":{"rendered":"https:\/\/test.simple-talk.com\/uncategorized\/fixing-an-update-error-has-occurred-when-modifying-alternate-access-mappings-in-sharepoint\/"},"modified":"2016-07-28T10:56:20","modified_gmt":"2016-07-28T10:56:20","slug":"fixing-an-update-error-has-occurred-when-modifying-alternate-access-mappings-in-sharepoint","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/fixing-an-update-error-has-occurred-when-modifying-alternate-access-mappings-in-sharepoint\/","title":{"rendered":"Fixing &ldquo;An update error has occurred&rdquo; When Modifying Alternate Access Mappings in SharePoint"},"content":{"rendered":"<p>A while back, I made&#160; change to my SharePoint configuration to modify my alternate access mappings.&#160; For some unknown reason, the mappings keep reverting back to their original state and when I go to modify them again, I get the following error:<\/p>\n<p>An update conflict has occurred, and you must re-try this action. The object SPAlternateUrlCollection id=&#8221;lt;Web&#8221; App Name&gt; was updated by &lt;USER&gt;, in the w3wp (&lt;ProcID&gt;) process, on machine &lt;Machine&gt;.&#160; View the tracing log for more information about the conflict.<\/p>\n<p>The solution to this is very simple &#8211; you have to clear the SharePoint cache on each machine in the farm.&#160; The problem is that most of the documentation out there is very old, and they all tell you the cache is located in:<\/p>\n<p><strong>C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\SharePoint\\Config\\<\/strong><\/p>\n<p>In my Windows Server 2012 environment, however, the actual location is:<\/p>\n<p><strong>C:\\ProgramData\\Microsoft\\SharePoint\\Config<\/strong><\/p>\n<p>Attempting to go to the All Users folder results in an Access Denied message, and then I have to search for what the heck is going on all over again.<\/p>\n<p>If you need info on how to clear the cache, visit the following page: <a href=\"http:\/\/blogs.msdn.com\/b\/josrod\/archive\/2007\/12\/12\/clear-the-sharepoint-configuration-cache-for-timer-job-and-psconfig-errors.aspx\">Clear the SharePoint Configuration Cache<\/a>.&#160; It has the updated directory locations in the instructions.&#160; Also, if you are trying to figure out which GUID directory to update when clearing the cache, there is a comment from <a href=\"https:\/\/social.msdn.microsoft.com\/profile\/joe%20rodgers\/\">Joe Rodgers<\/a> instructing you to run the following SQL statement in your SharePoint configuration database to retrieve the appropriate GUID:<\/p>\n<p>SELECT [Id] FROM [Objects] (nolock) WHERE classId = &#8216;E6591A38-008A-4F23-A88F-36A181C7D4EB&#8217;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while back, I made&#160; change to my SharePoint configuration to modify my alternate access mappings.&#160; For some unknown reason, the mappings keep reverting back to their original state and when I go to modify them again, I get the following error: An update conflict has occurred, and you must re-try this action. The object&#8230;&hellip;<\/p>\n","protected":false},"author":46738,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[],"class_list":["post-7817","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7817","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/46738"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=7817"}],"version-history":[{"count":4,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7817\/revisions"}],"predecessor-version":[{"id":42470,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/7817\/revisions\/42470"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=7817"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=7817"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=7817"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=7817"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}