Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Inventtrans cleanup

Posted on by 40

Hi all

Our AX 2012 R3 system has been running for about 3 years. The Inventtrans table has grown immensely . I have ran the on-hand entries cleanup but it does not really make a difference. 

Is there any other way to shrink the rows in this table (it is sitting over 9mil)

  • TheGoodDBA Profile Picture
    TheGoodDBA 235 on at
    RE: Inventtrans cleanup

    Here is a checklist for poor performing reports in AX:

    Start by analyzing the query:

    1. Do the joins in the query make sense?

    2. Are all of the table in the query resulting in index hits when executed, or are there table scans?

    3. Are there missing indexes requested by the index advisor? If so, evaluate the difference.

    Are the reports written in best practice?  

    1. Query returns filtered results, not using the report to filter the results, when avoidable.

    2. Should the report be converted to RDP if query is expensive?

    These should send you down the right path.  Chances are high the 9 million rows in InventTrans is not your performance problem.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Inventtrans cleanup

    I also agree that you need to take a look at your reports, queries and indexes.

    If your report is slow, the first approach should not be to delete data from the system :)

  • Neilb22 Profile Picture
    Neilb22 40 on at
    RE: Inventtrans cleanup

    Hi Ludwig , it is custom reports. I believe you are right I need to tune the query or try and run it through BI

  • Verified answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Inventtrans cleanup

    Hello Neilb22,

    Are the reports that face those performance issues standard reports or customized ones?

    If they are customized ones, you might probably be able to check and 'tune' the way how they extract the data.

    Alternatively, you can use BI tools for analyzing those inventory data.

    Best regards,

    Ludwig

  • Neilb22 Profile Picture
    Neilb22 40 on at
    RE: Inventtrans cleanup

    Yes we are experiencing some performance issues on some SQL reports linked to the inventtrans table. The 'inner join' is processing to many lines and it causes some reports to run over an hour

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Inventtrans cleanup

    Hi Neilb22,

    A small additional comment to the important notes already given above. The Inventory transactions are referenced throughout the system. When you perform a consistency check, it will verify the InventTrans table with the InventSum table. When you delete records, you cant use the consistency check anymore and an option to repair the InventSum table in case of emergency is lost.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Inventtrans cleanup

    Hi Neilb22,

    The inventtrans table is a table that you should almost never touch because a lot of things depend on those transactions.

    Unless you see a huge performance issue, I would recommend not trying to do any kind of cleaning, correction or something else because it is one of the main / central tables in AX.

    Best regards,

    Ludwig

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Inventtrans cleanup

    Do you experience some issues because of the size of the table?

    9 million doesn't sound huge.

    Are you planning to upgrade to D365 in the coming years? If yes, you could just leave old transactions behind in the upgrade, and migrate only master data and opening balances to D365.

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans