Generate and email a JSON error list as CSV
Recipe ToolsMarketingData ParserUtilities
What it does
When a scheduled time arrives, this automation retrieves all JSON error entries from a lookup table and parses each one. Someone receives a CSV file by email so errors can be reviewed and tracked.
Who it's for
Engineering teams who need to monitor JSON errors on a regular schedule.
How teams use this
Monitor JSON errors on a daily schedule
Run this automation every morning to collect all JSON errors from the previous day, convert them to CSV, and email the report to the engineering team. The team reviews errors without manual work.
Track errors across multiple systems
Retrieve errors from all sources stored in the lookup table, parse each JSON entry, and send one consolidated CSV report. This gives the team a single source of truth for all JSON failures.
Filter errors by severity before sending
Add a condition to check the severity field in each JSON error so only high-severity entries are included in the CSV. This requires a severity field in the JSON and a filter rule before the CSV is composed.
Archive processed errors after reporting
After the CSV is sent, set the lookup table to clear old entries and prevent duplicates in future runs. This keeps the error log clean and the automation efficient.
How it works
- Run on a custom schedule. This automation starts at the time and frequency you set, such as daily or weekly.
- Retrieve all error entries. Fetch every JSON error entry stored in the ProdJsonErrorEntriesFromAllRecipes lookup table so they can be processed.
- Parse each JSON error. For each entry, the Json Parser extracts error details in a structured format from the JSON document.
- Compose errors into CSV. Combine all parsed errors into a single CSV file with columns for each error attribute, then email it to the team.