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)

The change based alert batch job error

(0) ShareShare
ReportReport
Posted on by 62

Here's something new to think about.

We run the change based alerts batch job every 5 minutes daily.

On 28/01/2019 it ran in total 50times, 5 of these failed (status Error).

Full infolog output:

Infolog for Job Change based alerts (5637243922)

Infolog for Task Change based alerts processing task (5637187592)

Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics.

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

  at Microsoft.Dynamics.Ax.MSIL.Interop.createRunAsSession(String userId, String company, String language)

  at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runas(String userId, Int32 classId, String staticMethodName, Object[] parms, String company, String language)

  at Dynamics.Ax.Application.EventJobCUDTask.Run() in EventJobCUDTask.run.xpp:line 24

  at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 50

  at BatchRun::runJobStatic(Object[] )

  at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

  at BatchIL.taskThreadEntry(Object threadArg)

We have just started the AOS (during production hours, it's a stretch to take the system out of operation to do a CIL compile).

Since the restart the job has run 6 times with success and failed once.

Note that we did a full compile (Admin > Periodic > Compile Application), CIL compile, and AOS reset last week and this batch job was still failing (3% of the time on 28/02/2019).

Any help on this ?

Regards,

Rahul Singh Rathod

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    300,977 Super User 2025 Season 2 on at

    Hi Rahul,

    Could it be the case that there is an active alert for someone who left the company and is not an active user anymore?

  • Suggested answer
    guk1964 Profile Picture
    10,888 on at

    If you out an alert on a high volume table this can happen - the alert has to check all the entries since the last time the batch ran and if a lot of entries are made in a short time then the bathc may not finish before it is due to run again. Its a catch 22 less time interval means less data to process but less time to complete. In your case increasing the interval to say 10 minutes is probaby the way to go.

    Do you need real ti,e alerts? For such tables exception reports run e.g twice day may be a better option.

    There is a lot happening in the background with the infolog tables and eventcud that would concern me if there were numerous alerts being triggered i.e save alerts for exceptions..  

    docs.microsoft.com/.../event-detection-and-processing-for-alerts

  • Rahul Singh Rathod Profile Picture
    62 on at

    Hi Andre,

    Thanks for your reply. Yes there are few users who are left the company and their respective ids are disabled in Ax. Those ids exist in AX but they are disabled one and that ids have been deleted from AD as well.

    Can you tell me how to check "there is an active alert for someone" ?

    Regards,

    Rahul Singh Rathod

  • Rahul Singh Rathod Profile Picture
    62 on at

    Thanks for your valuable response. But this is not related with time interval because if I increase the time by twice in a day then still this job get fails.

  • guk1964 Profile Picture
    10,888 on at

    The longer the interval the more transactions it has to review, the more risk of record locks, the more events that go EventCud etc.

  • André Arnaud de Calavon Profile Picture
    300,977 Super User 2025 Season 2 on at

    Hi Rahul,

    In Organization administration > Setup > Alerts > Alert rules, you can check the rules for all users.

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
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
Ali Zaidi Profile Picture

Ali Zaidi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans