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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Very Slow Statement calculation

(0) ShareShare
ReportReport
Posted on by

if a statement is calculated manually it's very slow and in batch, i get a deadlock error as below.

I have deleted "inventsumlogtts" but still no improvement and nobody is using this table but still deadlock error

Anybody faced such issue. 

DeadLock-issue.JPG

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    vijaysharma Profile Picture
    2 on at

    HI,

    what about the event viewer log?  it seem that some problem in table indexing .

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Phani Buddha,

    You have multiple batch thread that lock same table and cause deadlocks. I would recommend you to go to Retail parameters -> posting -> batch processing and remove "process requests in parallel" check box or change "Maximum sales orders per task" value as a workaround. Also you need to open a case with MS, so they can fix this if it is not caused by your customization.

  • Balaji TK Profile Picture
    on at

    This Occurred After Any Cumulative Updates or GST Updates?

  • Suggested answer
    Vilmos Kintera Profile Picture
    46,149 on at

    Make sure you have the recommended SQL Server Trace Flags enabled for Dynamics AX. There is one which helps with lock escalation, and might clean up the deadlocks in combination with Ievgen's recommendation for retail batch parallelism.

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    if you have mass deleted then check your transaction log size.

    There are many other tables also that can probably be cleaned up.

    Run SQL stats.

    There are far too many other tuning suggestions above, and in other posts to cover here and there are many posts already.

    There is not enough information to pin point a specific problem e.g. how many POS are involved? Is this run daily? what maintenance is done on the store databases?

    The configuration key Sales tax (ledgerbasicSalesTax) may be  turned off in the system if you are not using tax. When running for example the retail statement posting, the performance may then be  very poor.  The slow response is originated in every call to TaxParameters::find(). When analyzing the sql server queries you will see a large number of Temporary table are  generated.

    If that is the case then turn it on again and set  sales tax to use a tax percentage of 0,00%.

  • Mahmoud Hakim Profile Picture
    17,887 on at

    also to enhance your performance , you need to run periodic jobs for maintance  plan  like rebuild and reorganize indexes ,and update statsitics ...etc

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans