Notifications
Announcements
No record found.
Hi All,
Can I disable retry of batch class that is implement BatchRetryable interface in D365 FO?
I tried to use Batch class configuration overrides to make it non retryable but it does not work any hint?
Regards,
Waed
Hi Waed, Please check this article, it mentions how to disable it, try it and let us know if it works.
d365technext.blogspot.com/.../d365fo-batch-job-retries.html
Hi Waed,
There is an option named Batch class configuration overrides under System administration >> Setup -- In that form you need to select your batch class and make it as retryable or not.
I never used this, but you can give it a try.
Thanks,
Girish S.
Hi Girish,
I tried it but it does not work maybe because it retryable by default. Also I tried to make extension /Eventhandler class for batch class to make extension on isRetryable method but it is hookable(false)
Hi Mohit,
I tried it but it does not work
Please confirm that you have added the class in this form and didn't checked 'Is retryable' checkbox. If you have checked the checkbox then it won't work.
This feature should work for standard class (By default retryable yes) as well on custom classes. The lookup shows all classes where retryable is set to True.
Yes. I added it to this form and I unchecked the check box but it does not work also I notice something the class is controller class and it does not appear in the dropdown list but when I copy it it take it.
CustAccountStatementExtController class was accepted because retryable is True in this class. If you try any class where its false, you will get an error 'The batch class xxxxxxxController is already configured with retryable = No. Please delete the record if no additional changes are needed.'
May I know why do you want to disable retry and are you testing this feature by stopping and starting SQL service.
Can you try setting maximum retries to zero in Batch task, add this field via personalization.
I had An issue when I run class and I have some customers don't have email, the process is failed then the retry it start, so some customers get duplicated emails due to retry of the batch.
"are you testing this feature by stopping and starting SQL service. ?" ===No I will try it now
Microsoft suggests to make our code compatible with retryable. If SQL Transient error occurs at record 50th put of 100 then during retry it will not start from 51st but from first record. So, if you are inserting records in a table then code should check if already inserted so it can skip during retry.
So, instead of disabling retry, probably you can check if you can handle it in code.
Also, Please test setting maximum retries to zero so we know it's feasible.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional