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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Trying to delete a GL Account

(0) ShareShare
ReportReport
Posted on by 90

One of our accountants was adding, editing a GL or testing something; whatever they were doing they tried to delete the GL and could not.  I cannot delete it either.  There is not history, and I am not quite understanding the error message.  When I go to delete the GL Account I get the following:

"Check G/L Acc. Deletion After must have a value in General Ledger Setup: Primary Key=. It cannot be zero or empty."

Any help would be great.

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    150 on at

    Go to the general ledger setup page. In that page there is a field about g/l account deletion. Add a date to that field. The tooltip for the field is “Specifies if and when general ledger accounts can be deleted. If you enter a date, G/L accounts with entries on or after this date cannot be deleted.” So pick a valid date and then try again.

  • Suggested answer
    Dirk Profile Picture
    Microsoft Employee on at

    Actually G/L Accounts can also be deleted if entries exists after that date (if they are in closed periods and the balance of the G/L Account is zero).

    Using the date in the General Ledger Setup is mandatory, but it does not prevent from deletion.

    It just throws another confirm message.

    And if you confirm ... you can delete the G/L Account even if entries exist after that date.

    It's the same priciple as if you want to delete the entire company ... you get a second confirm message.

  • tww Profile Picture
    90 on at

    Thanks that did it!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans