Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Batch task failed: NullReferenceException

Posted on by 6,414
Hello,
we have a custom batch job setup which runs daily at 22:00.
This job is already more than 1 year running successfully and there were no changes in the code recently.
We just changed the /scheduled start date/time/ from 22:00 to 03:00 and we got error messages:
Object reference not set to an instance of an object
Batch task failed: NullReferenceException
Have anyone expereince same issue after changing the start time?
What do we have to pay attention?
One thing I'm thinking is that if I go to recurrence the Start time is still 22:00 there but /Scheduled start date / time/ is 03:00. 
Can that be a problem and I have to change the /recurrence/ time to 03:00 too?
Thanks and regards
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,269 Super User 2024 Season 2 on at
    Batch task failed: NullReferenceException
    Hi Johnny,
     
    What is this batch job about? If it trying to get details based on a date? Maybe due to running the batch on one day later, it has some issues?
  • Suggested answer
    Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    Batch task failed: NullReferenceException
    Hi,
    Judging from the error message, this is a null reference exception when the code accesses the object, you can try to change the /recurrence/ time to 03:00 too. Have you checked the log of the batch job and does it provide more error information? Did you change the other configuration of the batch job before you changed the scheduled start time?
    Best regards,
    Kevin

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans