Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

batch job error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

hi everyone, 

i am completely new to AX. 

one of our batch jobs that email the sales report to company MD stopped working since a week ago. i checked the log which shows the below error. just wondering has anyone had run into the similar issue before? we are using AX 2009. 

thanks a lot!

7317.batch-job-error.PNG

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    the report is actually a financial statement for the up to date sales report. it's not saved as a file, only been sent to my MD via email. that's all. 

    here is the code for runExport class:

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    hi Crispin,

    below is the run method. thank you so much!

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    when i double click the error, it only shows me this? (unless im in the wrong place)

    thanks!

    0458.ax-error.PNG

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    just an update of my post. i've tried to manually restart the job and it runs successfully. however, when i set the recurrence (daily run) and the following day it runs with the same error again. any ideas please?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    Thanks for your suggestions Crispin. i have checked the email configuration which is identical on the batch server as well as client. the report is not saved to any file, so i think the folder access doesn't apply in this scenario?

    thanks.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: batch job error

    thanks Sukrut. it is a customization that i inherited when joined in the new company. the batch job actually runs a class (LedgerBalanceSheetDimPrint) which was assigned to generate financial statement. the batch job also emails the report to the MD.

    when manually generate the financial statement in pdf, it's working fine and correct. but in batch job somewhere has caused the issue. do you need to see the code?

    thanks!

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans