nerdexam
Microsoft

MB-500 · Question #381

A company uses Dynamics 365 Supply Chain Management. The company requires a critical inbound integration that uses the SysOperationFramework. The integration must be resilient to loss of connection…

The correct answer is A. Override the isRetryable method in the Service class. D. Implement the BatchRetryable interface in the Controller class. [A] In Dynamics 365 Finance and Operations, the isRetryable method is part of the BatchRetryable interface, which allows a batch job to automatically retry upon experiencing a transient error, such as a temporary loss of SQL connection. By implementing this interface and…

Implement data and application integration

Question

A company uses Dynamics 365 Supply Chain Management. The company requires a critical inbound integration that uses the SysOperationFramework. The integration must be resilient to loss of connection to SQL Server and SQL transient connection errors. You need to complete the integration. Which two actions should you perform? Each correct answer presents part of the solution. (Choose two.) NOTE: Each correct selection is worth one point.

Options

  • AOverride the isRetryable method in the Service class.
  • BOverride the isRetryable method in the Controller class.
  • CImplement the BatchRetryable interface in the Service class.
  • DImplement the BatchRetryable interface in the Controller class.

How the community answered

(37 responses)
  • A
    49% (18)
  • B
    35% (13)
  • C
    16% (6)

Explanation

[A] In Dynamics 365 Finance and Operations, the isRetryable method is part of the BatchRetryable interface, which allows a batch job to automatically retry upon experiencing a transient error, such as a temporary loss of SQL connection. By implementing this interface and returning true from the isRetryable method, a batch job's controller can signal to the batch framework that the operation is safe to retry, enabling the system to attempt it again after an error, thereby reducing the need for manual intervention. 1. Interface Implementation: Developers implement the BatchRetryable interface on their custom batch controller class. [D] 2. The isRetryable() Method: This interface requires the implementation of the isRetryable() method, which returns a boolean value. 3. Determining Retry Behavior: If isRetryable() returns true, the batch framework will automatically retry the job if a transient error If it returns false, the batch job will not be retried automatically and will likely require manual Note: Retry for SQL transient connection errors Currently, if finance and operations apps experience a brief loss of connection to Microsoft SQL Server, all batch tasks that are running fail. This behavior disrupts business processes. Because connection loss is inevitable in a cloud service, Microsoft enables automated retries when failures of this type occur. There are three ways to indicate that a batch class is retryable for SQL transient connection (1) Implement the BatchRetryable interface on the batch class. The BatchRetryable interface has a single method, isRetryable, that returns a Boolean value. If the value is True, the batch class is retryable. If the value is False, the batch class isn't retryable. The BatchRetryable interface is available as of version 10.0.18 (with Platform update 40). The following example shows how to set isRetryable for a batch class. class SampleBatchClass extends RunBaseBatch implements BatchRetryable [Wrappable(true), Replaceable(true)] // Change to meet your customizability requirements 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 //SysOperationServiceController class SampleBatchClass extends SysOperationServiceController implements BatchRetryable [Wrappable(true), Replaceable(true)] // Change to meet your customizability requirements 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 https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/sysadmin/retryable-batch

Topics

#SysOperationFramework#BatchRetryable interface#SQL resilience#batch processing

Community Discussion

No community discussion yet for this question.

Full MB-500 Practice