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 :
Microsoft Dynamics GP (Archived)

Cannot delete empty batches, "being edited by another user"

(0) ShareShare
ReportReport
Posted on by 375

I have a handful of empty batches, all the same user, that have zero transactions, yet cannot be deleted due to the error message, "Being edited by another user." Any way to delete these?

*This post is locked for comments

I have the same question (0)
  • TGcville@gmail.com Profile Picture
    375 on at

    Also, they do not appear in the "Series Posting" window, nor the "Batch Recovery" window.

  • TGcville@gmail.com Profile Picture
    375 on at

    And, I tried deleting them from the user that created them.

  • Suggested answer
    Community Member Profile Picture
    on at

    Try this

    www.sanjaykumar.us/.../this-batch-is-being-edited-by-another-user

    Cheers!

    Sanjay

  • Suggested answer
    Mahmoud Saadi Profile Picture
    32,738 on at

    Run the following update to change the status of the batch (to get it released) after ensuring that no user is already opening the batch

    UPDATE SY00500 SET MKDTOPST=0, BCHSTTUS=0 WHERE BACHNUMB='XXX'

    Now, you must be able to see the batch on the batch window, and delete it safely.

  • MG-16101311-0 Profile Picture
    26,225 on at

    With all users out the system, run the following against your environment:

    USE DYNAMICS;

    GO

    DELETE FROM ACTIVITY;

    DELETE FROM SY00800;

    DELETE FROM SY00801;

    GO

    USE tempdb;

    GO

    DELETE FROM DEX_LOCK;

    DELETE FROM DEX_SESSION;

    You should be able to return to GP and remove the empty batches.

  • TGcville@gmail.com Profile Picture
    375 on at

    From my reading, this would probably fix my issue, however I have no clue as to where to begin? I am an end user, not a Partner. Would this be done on the server through MS SQL exchange?

  • Community Member Profile Picture
    on at

    You will need to run this scripts at SQL Server query analyzer.  You will need appropriate access and permission to execute this script.  Would recommend if you have never done this before, contact your DBA.

    Cheers!

    Sanjay

  • MG-16101311-0 Profile Picture
    26,225 on at

    So long you have Microsoft SQL Server Management Studio (there's no such thing as MS SQL Exchange. There's SQL Server and then there's Exchange Server) running on a machine and can access (as in having permission) your SQL Server, you should be able to do this.

    I strongly suggest you contact your partner or get a hold of your DBA to run the above script.

  • Mahmoud Saadi Profile Picture
    32,738 on at

    Nothing more valuable to add for Mr. Mariano's comments except that this must be on the top ten list of the most FAQ in Dynamics GP.

    Just to include the documentation of this error on Microsoft Support Knowledge base, Article ID: 850289

  • MG-16101311-0 Profile Picture
    26,225 on at

    Thanks for pointing this out Mahmoud. There's a Microsoft Fix It! that is a part of the KB article Mahmoud has directed you to and this Fix It! should take care of the problem without the need of running SQL scripts (technically, it does the same in the background).

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#2
Shravan Attelli Profile Picture

Shravan Attelli 1

#2
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans