web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    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.

  • Community Member Profile Picture
    on at

    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

  • Martin Dráb Profile Picture
    237,978 Most Valuable Professional on at

    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.

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

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
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans