web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Cannot delete an entity

(0) ShareShare
ReportReport
Posted on by 20

So I am working with SaaS Business Central that is:
[b]Version: W1 20.2 (Platform 20.0.41086.43114 + Application 20.2.41144.41547)[/b]

The user I am logged in with, has Super, Security, Full Business, Extension Management - Admin rights for all the entities.

I have total of 3 entities and wish to keep just one.

Whenever I try to delete a company I get the following error after about 15 to 20 minutes of waiting;
[b]An unexpected error occurred after a database command was cancelled.[/b]

I tried to delete it using VSCode debugger and I can't catch the error on VScode to know why can't I delete the entity.

Thank you for any advice on this. I am stuck at it from 2 days.

I have the same question (0)
  • Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi Rusthy ,

    I have not found much resource, please refer below link if it helps you, other wise please a log a support ticket to MS support.

    github.com/.../7067

  • Suggested answer
    S.Kawamura Profile Picture
    1,530 on at

    Hi,

    First, try to make sure that Super permission set are not restricted to a specific company.

    To analyze the cause of the problem, you might try the following:

    a) Copy environment and same operation (delete company) on copied environment.

    b) Create new blank company, then delete the company.

    c) Copy the company that you want delete and failed to delete, and then delete copied company.

    I hope this helps you.

    S.Kawamura

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, This appears to trigger the Database limit below.

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/operational-limits-online#Database

    pastedimage1657081549547v1.png

    It is recommended that you uninstall all Extensions other than Microsoft and try again. If there is still a problem, it is recommended to submit a Service Request to Microsoft.

    Hope this helps.

    Thanks.

    ZHU

  • Rusthy Profile Picture
    20 on at

    Hi, thanks for your response. Is there a way, even if it is from AL Development Envoirnment, that I can know which table is taking so much time to complete its SQL command?

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, hope the information below can give you some help.

    From Business Central Launch Event:

    pastedimage1657094026326v1.png

    pastedimage1657094034370v2.png

    pastedimage1657094040810v3.png

    pastedimage1657094044897v4.png

    pastedimage1657094061702v8.png

    More details:

    [View:/cfs-file/__key/communityserver-discussions-components-files/758/What_2700_s-new-in-Server-and-Database.pdf]

  • Rusthy Profile Picture
    20 on at

    I clicked on the emit telemetry and then tried to delete the entity but it still didn't give me a more friendlier error. It was the same 1 line error; An unexpected error occurred after a database command was canceled.

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    I will suggest please log a support ticket with MS.

  • Rusthy Profile Picture
    20 on at

    We are not partners. I work as a developer client side. How do I contact Microsoft for this?

  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    In that case please take help of your License partner.

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, try below ways.

    Where to file bugs ,issues and Questions

    https://yzhums.com/20581/

    Hope this helps.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans