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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Disable retry in Batch class

(0) ShareShare
ReportReport
Posted on by 9,039 Super User 2025 Season 2

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

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    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

  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    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)

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Hi Mohit,

    I tried it but it does not work

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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.

    pastedimage1682768313625v1.png

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    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.

    pastedimage1682768741206v1.png

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Can you try setting maximum retries to zero in Batch task, add this field via personalization.

    pastedimage1682771870939v1.png

  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at

    Hi Mohit,

    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

    Regards,

    Waed

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    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.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 456 Super User 2025 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans