Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Batch job unable to execute the business logic on batch server

(0) ShareShare
ReportReport
Posted on by 550

Hi Folks,

I am facing an issue in Dynamics Ax 2012 R3 where we have performed integeration using web services with Microsoft Dynamics CRM. We have created certain RunBase batch classes to push data from AX into CRM consuming their web services. These batch jobs are working fine until we don't execute them into batch processing server. When we are executing same batch jobs on batch server so that  they can run automatically with recurrence they are not doing the desired task.

Can someone help me with this.?

Thanks in advance!

*This post is locked for comments

  • Soren Andersen Profile Picture
    Soren Andersen 530 on at
    RE: Batch job unable to execute the business logic on batch server

    Any error messages in the info log for the batch job? Any related application eventlog errors on the batch aos.?

    Either you are batch classes are not coded correctly, so they will not run in batch - so you call client side code - or are missing some asserts.

    Or try to start a client on the batch aos - if the batch jobs fails there, when you run the interactively - then it is probably some firewall security issues. AOS are often more secured then servers running Ax clients.

  • Suggested answer
    Vilmos Kintera Profile Picture
    Vilmos Kintera 46,149 on at
    RE: Batch job unable to execute the business logic on batch server

    If you are using external assembly/DLL that is not compatible with the 64-bit server environment, or you forgot to build CIL, it could all be valid causes.

    I have published an article about troubleshooting potential problems with batch jobs, have a read and make sure you would pass all points:

    www.daxrunbase.com/.../troubleshooting-batch-jobs-in-ax

    The last resort is to debug what is failing as suggested by Martin.

  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Batch job unable to execute the business logic on batch server

    Use the debugger to find out what's failing in the batch. If you don't know how, refer to Debugging in Microsoft Dynamics AX 2012 > Batch Jobs.

  • Martin Dráb Profile Picture
    Martin Dráb 230,445 Most Valuable Professional on at
    RE: Batch job unable to execute the business logic on batch server

    Hi karan, please separate tags with comma, words with spaces and don't prefix tags with #. You created a single long tag #MicrosoftDynamics#CRM#BatchServer#WebServies (I'm going to fix it for you this time).

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans