What is the Try scope and what is the difference between on-error-propagate and on-error-continue?
Suggested answer
The Try scope adds localised error handling within a flow (similar to try-catch). It contains processors and one or more On Error handlers. on-error-propagate: The error is handled in this scope, but it continues to propagate up to the calling flow's error handler after the handler executes. The transaction is rolled back (if transactional). The flow does not continue after the Try scope — it fails up the chain. on-error-continue: The error is handled and the flow continues execution after the Try scope as if no error occurred. The transaction is committed (not rolled back). The last payload set in the handler becomes the payload for the remainder of the flow. Use on-error-continue when the error is recoverable and you want to provide a default response; use on-error-propagate when the error should be escalated to the caller.
Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.
Community comments (0)
No comments yet.
Sign in or create a free account to add a comment. Comments are moderated before they appear.