Batch class configuration overrides – D365F&O

Implementing a retry mechanism in Finance and Operations Batch enhances fault tolerance by automatically managing temporary errors, ensuring continuous operation without the need for manual intervention

By minimizing both downtime and manual involvement, a retry mechanism boosts operational efficiency, allowing batch processing to continue seamlessly, even in the face of occasional errors or disruptions.

In the below code snippet, the batch is set to Retryable .

//SysOperationServiceController 
class SampleBatchClass extends SysOperationServiceController implements BatchRetryable
{
    [Wrappable(true), Replaceable(true)] 
    public boolean isRetryable() // Use final if you want to prevent overriding
    {
        return true; // You can also use false if you do not want to enforce retryable behavior using isRetryable
    }
}

It is possible to override of isRetryable in the Batch user interface. Go to System Administration > Setup > Batch class configuration overrides, add the batch class, and set the desired value for Is Retryable. The value that is entered here overrides the value that’s provided in code.

Original Post https://anithasantosh.wordpress.com/2024/11/07/batch-class-configuration-overrides-d365fo/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...