Retry error handling in Adobe Workfront Fusion

In some cases it is useful to re-execute a failing module if there is a chance that the reason for the failure might pass over time.

Access requirements

You must have the following access to use the functionality in this article:

Adobe Workfront plan*
Pro or higher
Adobe Workfront license*
Plan, Work
Adobe Workfront Fusion license**

Current license requirement: No Workfront Fusion license requirement.

Or

Legacy license requirement: Workfront Fusion for Work Automation and Integration

Product

Current product requirement: If you have the Select or Prime Adobe Workfront Plan, your organization must purchase Adobe Workfront Fusion as well as Adobe Workfront to use functionality described in this article. Workfront Fusion is included in the Ultimate Workfront plan.

Or

Legacy product requirement: Your organization must purchase Adobe Workfront Fusion as well as Adobe Workfront to use functionality described in this article.

To find out what plan, license type, or access you have, contact your Workfront administrator.

For information on Adobe Workfront Fusion licenses, see Adobe Workfront Fusion licenses.

Workarounds to the Retry error handling directive

Adobe Workfront Fusion currently does not offer the Retry error handling directive, though two workarounds can be employed to mimic its functionality. For more information, see Directives for error handling in Adobe Workfront Fusion.

Use the Break directive

  1. In the scenario settings panel, enable the Allow storing of Incomplete Executions option.

    For more information, see The scenario settings panel in Adobe Workfront Fusion.

  2. Attach an error handler route to the module, as described in Error handling in Adobe Workfront Fusion.

  3. Link the Break directive to the error handler route and configure it.

    For more information, see Directives for error handling in Adobe Workfront Fusion.

Drawbacks

  • The minimum retry interval is one minute.

  • If the module is processing multiple bundles and the processing of a bundle fails, the partial execution (only the bundle that caused the error) is moved to the incomplete executions folder and scheduled for retries according to the Break directive settings. However, the current execution continues and the module continues to process the subsequent bundles. You can enable the “Sequential processing” option in the Scenario settings to prevent the scenario from executing again until the execution stored in the the Incomplete executions folder has been successfully resolved.

    For more information on incomplete executions, see View and resolve incomplete executions in Adobe Workfront Fusion.

Use the Repeater module

  1. Employ the Repeater module and set its Repeats field to the maximum number of attempts.

  2. Link the potentially failing module to the Repeater module.

  3. Attach an error handler route to this module (see Error handling in Adobe Workfront Fusion).

  4. Link the Tools > Sleep module to the error handler route and set its Delay field to the number of seconds between the attempts.

  5. Link the Ignore directive after the Tools > Sleep module (see Directives for error handling in Adobe Workfront Fusion).

  6. Link the Tools > Set variable module after the the potentially failing module and configure it to store the module’s result in a variable named, for example, Result.

  7. Link the Array aggregator module after the Tools > Set variable and choose the Repeater module in its Source Module field.

  8. Link the Tools > Get variable module to the Array aggregator module and configure it to obtain the value of the Result variable.

  9. Insert the Tools > Get variable module between the Repeater module and the potentially failing module and configure it obtain the value of the Result variable.

  10. Insert a filter between this Tools > Get variable module and the potentially failing module to continue only if the Result variable does not exist.

INFO
Example: Here is a sample scenario where the HTTP >Make a request module represents the potentially failing module:
If the result of the potentially failing module is too complex to be stored in a simple variable, you can employ a data store to store/retrieve the result. The data store would contain just one record. The record’s key can be, for example, Result.
For more information on data stores, see Data Stores in Adobe Workfront Fusion

Drawback

This workaround might appear a bit too complex, and is also more demanding in terms of operations.

recommendation-more-help
5f00cc6b-2202-40d6-bcd0-3ee0c2316b43