Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Question about jobs in AOT

(0) ShareShare
ReportReport
Posted on by

Hello 

I have problem with sales picking list its get disappear after 1 day 

I found some jobs in AOT about the Picking list so I want to know is this job deleting the picking list ? 

this is the code 

static void CheckSalesInvoice_PickingList(Args _args)
{
CustInvoiceJour CustInvoiceJour;
CustInvoiceTrans CustInvoiceTrans;
InventDim InventDim;
InventBatch InventBatch;

WMSPickingRoute WMSPickingRoute;
WMSOrderTrans WMSOrderTrans;
int s;

while select CustInvoiceJour
{
s = 0;

while select WMSPickingRoute where WMSPickingRoute.transRefId == CustInvoiceJour.SalesId
&& WMSPickingRoute.transType == InventTransType::Sales
{
s++;
}
if(s>1)
{
info(strFmt('%1',CustInvoiceJour.SalesId));
}
}


}

*This post is locked for comments

  • Martin Dráb Profile Picture
    233,575 Most Valuable Professional on at
    RE: Question about jobs in AOT

    Workflow* and SysWorkflow* classes are related to workflows, obviously. EventJob* classes handle alerts.

    The only place where I found InventBatchBlock and CuchCheckHold is your own thread, Picking list issue, which likely means it's a customization. I can't tell you what your custom classes do. It also means that there this discussion belongs to the existing thread.

    You've got information to work with, such as using database logging, so use it analyze your problem. Then you can share your findings with us, so we can give you more suggestions. Repeating things like "Up" and "Any help?", as you do in your other thread, doesn't add anything new, so it won't lead to new answers.

  • Community Member Profile Picture
    on at
    RE: Question about jobs in AOT

    Dear Martin

    I have these Batch jobs

    23602.Capture.JPG

    Actually I don't know which one that you responsible for delete the picking list

    Reply

  • Suggested answer
    Martin Dráb Profile Picture
    233,575 Most Valuable Professional on at
    RE: Question about jobs in AOT

    No, there is clearly no delete command in this job. It's calculates number of picking routes for every journal (in a ridiculously inefficient way) and shows the numbers in infolog.

    Also note that if you're looking for something running periodically every day, you need to look at batch jobs, not AOT jobs.

    To identify who deletes some records, you can set up database logging.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 48

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans