Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Parallel operations in table

(0) ShareShare
ReportReport
Posted on by 80

hello all, 

I have a batch with runs in LedgerJournalTable and it takes few mins or sometimes even hours to complete. When the batch status is "Executing", I try to delete any header from General journal randomly and AX gets hanged until the batch status is "Ended". 

Once the batch status is "Ended" then AX proceeds to delete the GL which I deleted manually. 

I would like both the operations run simultaneously. Is it possible to do that technically ? 

*This post is locked for comments

  • Martin Dráb Profile Picture
    Martin Dráb 231,493 Most Valuable Professional on at
    RE: Parallel operations in table

    Also, it sounds like your long-running process executes everything in a single transaction (and therefore all locks are held until it completes). Check if it can't be split to smaller transactions and whether all locks it takes are necessary.

    It's also possible to explicitly enforce optimistic locking, if relevant in your case.

  • Suggested answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Parallel operations in table

    Hi ChennaiAXDeveloper,

    Probably SQL escalates locks on LedgerJournalTable during posting, you need to check it in management studio, then you can disable lock escalation for this table, here you can read how to disable them blog.pythian.com/disable-lock-escalation-in-sql-server but it's better to talk to your DBA if you have one.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,575 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,493 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans