Locked table
Hello guys,
I have a locked table in Business Central CLOUD Sandbox, thus I can't open the page related to that table and not Publish the objects with SchemaUpdateMode=Recreate getting this wonderful error: "The request for path /v1.0/sandbox/dev/apps?SchemaUpdateMode=recreate failed with code InternalServerError. Reason: "
How did I lock the table in the first place? Very easy.
- Run Debugger
- Business Central Session Timed Out and needed new login.
- When starting debugger again table was locked.
Any suggestions on how I can get the table unlocked? For On-Premise version it would have been easy. Just KILL the stuck process in SQL. But how about the cloud version?
best regards, Thomas Barbut
You can try resetting your sandbox. Other than that you'll most likely need to contact support. I will track this as a bug as well since we should not get into this situation.
Hello,
After some time it went away by it's own. It was between 20-40 minutes. Never happened on production environment. So it's fine.
I kind of had the impression that resetting the sandbox could have solved the problem, but I didn't want o reset the sandbox as I had all the setup data prepared for the testing. And backing those up and reloading them via Rapid Start would have taken some time I can't afford.
I really appreciate your fast reactions on about every issue. Keep up the good work guys. 👍
best regards, Thomas Barbut
Hi,
I have experienced almost the same thing. Debugging in VS Code sometimes hangs and it takes forever to step between lines. If I wait it eventually steps to next line. If I stop the debugger, sometimes it doesn't stop the execution in the web client (usually I get a message saying the execution was stopped by debugger) and tables that were locked before everything hung (in my case No. series) is still locked. After waiting about 30 minutes the lock is released and everything works fine (and debugging is working as normal again without delays).
BR Linda
@ligoendeavor are you also using BC sandbox?
@kalberes Yes, I'm using BC Sandbox. It's the cloud version of BC, so it's not on prem or docker.
We will try to issue a better error message here.
The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 26047.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/
The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 26103.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/
The fix for this issue has been checked in to the master branch. It will be available in the bcinsider.azurecr.io/bcsandbox-master Docker image starting from platform build number 26047.
If you don’t have access to these images you need to become part of the Ready2Go program: aka.ms/readytogo
For more details on code branches and docker images please read: https://blogs.msdn.microsoft.com/nav/2018/05/03/al-developer-previews-multiple-releases-and-github/ https://blogs.msdn.microsoft.com/freddyk/2018/04/16/which-docker-image-is-the-right-for-you/
hi, this problem has not been solved. where is the solution?