Skip to main content

Notifications

Announcements

No record found.

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

Disable retry in Batch class

(0) ShareShare
ReportReport
Posted on by 7,257 Super User 2025 Season 1

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

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Disable retry in Batch class

    You might be trying to add field at batch job level. If yes, then please click on jobId to go to batch job details and in Batch task grid, insert column. This is form grid where controller class is specified.

  • Waed Ayyad Profile Picture
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    RE: Disable retry in Batch class

    Hi Mohit,

    "maximum retries to zero"== I am not found the field

    pastedimage1682783612736v1.png

    Also I tried to stop and start Sql service but btach class override does not work.

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Disable retry in Batch class

    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.

  • Waed Ayyad Profile Picture
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    RE: Disable retry in Batch class

    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

  • Suggested answer
    Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Disable retry in Batch class

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

    pastedimage1682771870939v1.png

  • Mohit Rampal Profile Picture
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Disable retry in Batch class

    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.

  • Waed Ayyad Profile Picture
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    RE: Disable retry in Batch class

    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
    Mohit Rampal 12,554 Super User 2024 Season 1 on at
    RE: Disable retry in Batch class

    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
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    RE: Disable retry in Batch class

    Hi Mohit,

    I tried it but it does not work

  • Waed Ayyad Profile Picture
    Waed Ayyad 7,257 Super User 2025 Season 1 on at
    RE: Disable retry in Batch class

    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)

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans