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 AX (Archived)

Consistency check - Inventory managment in x++ job

(0) ShareShare
ReportReport
Posted on by 169

Hello,
Can anybody tell me how can i run this functionality through x ++ (job).
Consistency check :
Module: Inventory Managment
Check/Fix : fix

"Item"

8552604.Capture.JPG

*This post is locked for comments

I have the same question (0)
  • Rustem Galiamov Profile Picture
    8,072 on at

    Hi Deniz!

    Why you need to run it through the job?

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Should be something like

    InventConsistencyCheck    inventConsistencyCheck;
    SysConsistencyCheckJob    systemConsistencyCheckBase= new SysConsistencyCheckJob(classIdGet(inventConsistencyCheck));
    
    systemConsistencyCheckBase.parmCheckFix(CheckFix::Fix);
    systemConsistencyCheckBase.run();


  • Deniz Lapantov Profile Picture
    169 on at

    So can I choose current record.

  • Mea_ Profile Picture
    60,286 on at

    Yes, you can. But what do you mean under "current record"?

  • Deniz Lapantov Profile Picture
    169 on at

    Current ItemId

  • Mea_ Profile Picture
    60,286 on at

    If you want someone to help you you need to explain your problem using more than 2 words

  • Deniz Lapantov Profile Picture
    169 on at

    I have this problem:

    Cannot reserve 1,00 of item [item] because of stock shortage. Clear the Reservation required setting to allow further processing of the shipment.

    However, there is enough stock in my warehouse...

    Even when i clear the reservation required setting, system throws a warning: Not all shipment lines could be reserved...So no solution...

    Тhe code has a lot custamizatons and it gives me this error only in one case when I have a pallet. I can not find exactly what the error is. It has to be very debugging.

    With Consistency check(inventory management) things get better by giving it to the current itemId.  

    So I want before I can activate shipment, to run this functionality with through the code in my particular case.

  • Suggested answer
    Rustem Galiamov Profile Picture
    8,072 on at

    Try to recalc InventSum.

    static void InventSumRecalc(Args _args)
    {
        InventSumReCalcItem         inventSumReCalcItem;
        
        ttsbegin;
    
        inventSumReCalcItem = new InventSumReCalcItem("yourItemId", true, CheckFix::Fix);
        inventSumReCalcItem.updateNow();
        
        ttscommit;
        
        info("done");
    }
    


  • Deniz Lapantov Profile Picture
    169 on at

    I will try and give feedback

  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    First of all it's generally a bad idea to fix data instead of fixing your code.

    Each table that supports consistency check has set of checkFix*, methods. For example on inventTrans you have checkFixFields(), checkFixReference(), checkFixSettlement() and so on. So find out method that does fix of your data and call it directly from the code.

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 AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans