Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Unable to delete GL account

Posted on by 980

When attempting to delete a GL account, we get the message "xxx is part of an unposted transaction.  It cannot be deleted."

There are no unposted transactions for this company, and the account is not used as a default on a vendor, customer or system posting setup.

Is there a way to determine where this account is being used, so it can be deleted?

*This post is locked for comments

  • Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Unable to delete GL account

    Follow up - if I remove the Account from the XLImport - is that only effect the content of the Budgets?  

    This table - and the GL00100 and Gl00105 are the only other places I find the reference to the Account Index.  So removing from that table only effects that budgets.

  • Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: Unable to delete GL account

    We have the same issue - have tried the same resolution and none of the suggestions have worked.

    Questions - My reservation about deleting the account is 'what happens to the posted transactions that reference this account'

    Do we need to remove them first?  If so, where does it stop.

  • Suggested answer
    kmalone43 Profile Picture
    kmalone43 880 on at
    RE: Unable to delete GL account

    We figured that a recently added budget was causing the issue here as well.  After trying to delete and recreate the budget, the account still would not delete.

    We found that the issue was in the XLImport table.  After deleting the contents of that table for the account in question, we went back into and deleted the account without issue.  This was on GP2015R2.

    Here's the script that we ended up having to run

    Select * from XLImport where actindx = {}

    Delete from XLImport where actindx = {}

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to delete GL account

    This could be due to a Budget ID that has been deleted.  Create a new budget ID using Excel wizard with the exact same BID as was deleted.  Need only use one account, with Blank budget.  Save the excel file, close excel, back in GP select the BID and import from Excel the saved file.  This will overwrite/update the tables and now you will be able to delete the accounts.  To delete the Budget ID from GP, first delete the account budget through GP, save, and then delete the Budget ID

  • Verified answer
    Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Unable to delete GL account

    Do you have acccess to SSMS? If so, try these steps:

    1) Select * from GL00100 and look for your GL accouint and make note of the ACTINDX value

    2) Select * from GL10001 where ACTINDX = the value from Step 1 make note of the DEX_ROW_ID value(s)

    3) Delete GL10001 where DEX_ROW_ID = the value(s) from Step 2

    or

    You may have orphaned records and running check links might clear up this issue. Make sure you have a backup before running check links or running the SQL commands.

  • Verified answer
    Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: Unable to delete GL account

    Okay then, we are clear now.

    Let me provide my suggestion on how to handle this case, you may go through the following suggestions in sequence

    • Check links and Reconcile for the financial series. Then go for the delete, if that still didn't work, for for the next suggestion.
    • The account may be used in posting setup or Cards (customer, vendor, checkbook ...etc). The posting setup can be reached on (Microsoft Dynamics GP > Tools > Setup > Posting > Posting Accounts)
    • Run the following select statement (just to ensure that there are no unposted transactions at all), if it does not return any records at all, go for the next suggestion

    SELECT  A.BACHNUMB,
            A.JRNENTRY,
            A.ACTINDX,
            B.ACTNUMST,
            A.DEBITAMT,
            A.CRDTAMNT
            FROM GL10001 AS A
            LEFT OUTER JOIN GL00105 AS B
            ON A.ACTINDX = B.ACTINDX
            WHERE B.ACTNUMST = '000-000-000'

    • If there are no transactions at all on this account as you stated, I might get them deleted from the database. (Be quite cautious about this step) Delete the account from GL00100 and GL00105. Be aware of the "where" in your delete statement, in order not to include any other records. The best way is to include the "Dex-Row-ID" in the where, since it is unique on the record level
    • After deleting the account from the GL00100 and GL00105, run check links and reconcile for the financial series.

    As always, when performing a very simple update or delete statement on the database level, a back up is always a must. If you are not a technical person, contact your partner. If you are a technical person, check the suggested criteria on a test environemnt to ensure its validity first.

    Hope this helps,

  • Dave Bosserman Profile Picture
    Dave Bosserman 980 on at
    RE: Unable to delete GL account

    Thanks for the answer, but there are no unposted transactions in GL (or in any module).  The smartlist you noted returns no records.

  • Mahmoud Saadi Profile Picture
    Mahmoud Saadi 32,738 on at
    RE: Unable to delete GL account
    • Go to Smart List > Financial > Account Transactions.
    • Add the column  "Document Status"
    • On the search, filter by the (Work) status which is unposted, and the account number mentioned above.

    This should return the Journal Entry for this specific account. As long as you have unposted transactions, you are supposed to delete this transactions in order to be able to delete the account. Dynamics GP will not allow this GL account to be deleted.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans