This article explains how to troubleshoot the “Update conflict” error in SharePoint using a PowerShell script.
IntroductionMany of you must have come across the issue “An update conflict has occurred and you must re-try this action” and it is suggested to remove the file system cache on the front-end servers. There are many articles to show how to do this manually. But here I will show you how to resolve it using a PowerShell script.Cause for this issueThis issue occurs if the contents of the file system cache on the front-end servers are newer than the contents of the configuration database.ResolutionTo resolve this issue, clear the file system cache on all servers in the server Farm on which the Windows SharePoint Services Timer service is running. This can be done manually, but consider a large Farm where the administrator needs to login to each of the servers to perform the activity manually. It is time-consuming and people can make mistakes. PowerShell becomes handy here.The following procedure can resolve the issue:
Now I will explain how to perform the preceding tasks using a PowerShell script.Stop SharePoint timer serviceThe following piece of code stops the SharePoint timer service:
Getting Started with SharePoint Framework Development using TypeScript, PnP JS, and React JS