Adding recovery steps
A failed event is recovered by applying one or more steps to the payload to fix the issue that is causing a failure.
You can take three actions within a step:
- Replace - replace the value by matching a regex statement against the current value and providng a replacement value. This is commonly used when an incorrect value has been passed in.
- Remove - remove the attribute entirely. This is commonly used when an attribute has been passed in that does not exist in the Data Structure schema.
- Cast - cast the attribute value from one type to another e.g. string to number.
Adding a step manually
To add a recovery step, click the
Add structured step button. This will allow you to build a recovery step. You'll see a list of the event failure messages on the right hand side of the panel for reference.
- First select the attribute you wish to target with this step. As you type attributes from your event will auto-complete.
- Select the recovery operation you want to run (Replace, Remove, Cast)
- Depending on the operation a number of other options may appear, fill these out as required.
- Click 'Add this step'
Once added the step will appear in your list of recovery steps, and in the right hand panel you will see the resulting payload as a result of your step.
Where possible the UI will provide recommendations for recovery based on the error messages in your failed event.
To view recommendations click the
View recommendations button. This will show a list of recommendations per error message, where possible.
To apply a recommendation click
Apply this step. You will be taken to a partially / fully configured step. Check you are happy with the configuration and click
Add this step to add it to your recovery design.