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

Notifications

Announcements

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)
  • 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.

  • Deniz Lapantov Profile Picture
    169 on at

    I will try and give feedback

  • 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 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.

  • 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

    Current ItemId

  • 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

    So can I choose current record.

  • 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();


  • Rustem Galiamov Profile Picture
    8,072 on at

    Hi Deniz!

    Why you need to run it through the job?

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

News and Announcements

Season of Giving Solutions is Here!

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
TAHER Mehdi Profile Picture

TAHER Mehdi 3

#2
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#2
Volodya Profile Picture

Volodya 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans