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

Announcements

News and Announcements icon
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,812 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,532 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
    101,775 Super User 2026 Season 1 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
    101,775 Super User 2026 Season 1 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,812 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,812 Moderator on at

    In that case please take help of your License partner.

  • Suggested answer
    YUN ZHU Profile Picture
    101,775 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,497 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,778 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,507

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans