Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Parallel operations in table

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 230,198 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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans