Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds AWS Step Functions state machines in Amazon States Language using JSONata, covering states, error handling, and JSONPath migration.
82% 95%+14 ptsof test cases passed
Passed 21 of 22 test cases with the skill, and 18 of 22 without it.
3 of 3 safety checks passed
Not used yet
When a state encounters an error, Step Functions defaults to failing the entire execution. You can override this with Retry (retry the failed state) and Catch (transition to a fallback state). Retry and Catch are available on: Task, Parallel, and Map states.
Errors are identified by case-sensitive strings. Step Functions defines these built-in error codes:
| Error Code | Description |
|---|---|
States.ALL | Wildcard — matches any error |
States.Timeout | Task exceeded TimeoutSeconds or missed heartbeat |
States.HeartbeatTimeout | Task missed heartbeat interval |
States.TaskFailed | Task failed during execution |
States.Permissions | Insufficient privileges |
States.QueryEvaluationError | JSONata expression evaluation failed |
States.BranchFailed | A Parallel state branch failed |
States.NoChoiceMatched | No Choice rule matched and no Default |
States.ExceedToleratedFailureThreshold | Map state exceeded failure tolerance |
States.ItemReaderFailed | Map state ItemReader failed |
States.ResultWriterFailed | Map state ResultWriter failed |
Custom error names are allowed but must NOT start with States..
The Retry field is an array of Retrier objects. The interpreter scans retriers in order and uses the first one whose ErrorEquals matches.
| Field | Type | Default | Description |
|---|---|---|---|
ErrorEquals | string[] | Required | Error names to match |
IntervalSeconds | integer | 1 | Seconds before first retry |
MaxAttempts | integer | 3 | Maximum retry attempts (0 = never retry) |
BackoffRate | number | 2.0 | Multiplier for retry interval (must be ≥ 1.0) |
Next to this one in the catalogue, plus more from the same author.