AL icon indicating copy to clipboard operation
AL copied to clipboard

Locked table

Open thomasbarbut opened this issue 8 years ago • 10 comments

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.

  1. Run Debugger
  2. Business Central Session Timed Out and needed new login.
  3. 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

thomasbarbut avatar Oct 25 '18 22:10 thomasbarbut

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.

StanislawStempin avatar Oct 26 '18 06:10 StanislawStempin

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

thomasbarbut avatar Oct 26 '18 15:10 thomasbarbut

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 avatar Oct 31 '18 11:10 ligoendeavor

@ligoendeavor are you also using BC sandbox?

kalberes avatar Nov 14 '18 10:11 kalberes

@kalberes Yes, I'm using BC Sandbox. It's the cloud version of BC, so it's not on prem or docker.

ligoendeavor avatar Nov 14 '18 11:11 ligoendeavor

We will try to issue a better error message here.

kalberes avatar Nov 15 '18 11:11 kalberes

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/

ALGitHubBot avatar Nov 21 '18 12:11 ALGitHubBot

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/

ALGitHubBot avatar Nov 21 '18 12:11 ALGitHubBot

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/

ALGitHubBot avatar Dec 12 '18 12:12 ALGitHubBot

hi, this problem has not been solved. where is the solution?

ghost avatar Apr 05 '19 14:04 ghost