Announcements
No record found.
Hello,Can anybody tell me how can i run this functionality through x ++ (job). Consistency check :Module: Inventory ManagmentCheck/Fix : fix
"Item"
*This post is locked for comments
Hi Deniz!
Why you need to run it through the job?
Should be something like
InventConsistencyCheck inventConsistencyCheck; SysConsistencyCheckJob systemConsistencyCheckBase= new SysConsistencyCheckJob(classIdGet(inventConsistencyCheck)); systemConsistencyCheckBase.parmCheckFix(CheckFix::Fix); systemConsistencyCheckBase.run();
So can I choose current record.
Yes, you can. But what do you mean under "current record"?
Current ItemId
If you want someone to help you you need to explain your problem using more than 2 words
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.
Try to recalc InventSum.
static void InventSumRecalc(Args _args) { InventSumReCalcItem inventSumReCalcItem; ttsbegin; inventSumReCalcItem = new InventSumReCalcItem("yourItemId", true, CheckFix::Fix); inventSumReCalcItem.updateNow(); ttscommit; info("done"); }
I will try and give feedback
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.
Congratulations to our 2026 Super Stars!
We are thrilled to have these Champions in our Community!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CP04-islander 39
Michel ROY 14
imran ul haq 8