Recently, we had written a batch job to connect to D365 and do some operation on a schedule. While deploying the batch job from Visual Studio as a web job we got the below error:
“The local data store is currently in use by another operation. Please wait and then try your operation again. If this error persists, restart the application.”
To fix this error, we stopped the App Service in Azure portal temporarily where we were trying to deploy the code as web job.
After stopping the app service in Azure portal and clicking OK on error pop up in Visual Studio, the deployment started automatically and got deployed successfully.
After deployment we started the app service again in the Azure portal.
Hope it helps !!