When using the Export Flow or Export Folder cards in Workflows, a 429 error may be encountered, similar to the following:
{
"_error": true,
"retry_count": 0,
"flo": 247234,
"method": "QtHQeoWtK",
"execution": "d182ab01-84ae-4cf4-9875-a3337e9cf159",
"module": "utility.exportGroup",
"kind": "HTTP Request Error",
"statusCode": 429,
"headers": {
"x-rate-limit-limit": "200",
"x-rate-limit-reset": "1687389341",
"x-rate-limit-remaining": "0"
},
"body": "Too many requests.",
"message": "429 Too Many Requests",
"code": 429,
"description": "HTTP Request Error",
"steps": 2,
"source": {
"flo": 247234,
"method": "QtHQeoWtK",
"execution": "d182ab01-84ae-4cf4-9875-a3337e9cf159",
"module": "utility.exportGroup"
}
}- Workflows
- Export Flow card
- Export Folder card
This error occurs when the rate limit for the number of workflows that can be exported is reached. The rate limit, referred to as the export capacity in the Export Flow and Export Folder documentation, is determined by the Workflows subscription plan. The available export capacity is reset every 15 minutes. If the total number of workflows exported using a combination of these two cards exceeds the export capacity within the 15 minute window, the 429 Too Many Requests error will occur.
If encountering this error when exporting a large number of workflows to be saved as backups for disaster recovery purposes, consider the following approach to avoid rate limit violations:
- Identify the org's export capacity by looking at the x-rate-limit-limit header in headers object of the error message. In this example, the limit is 200.
- Create separate workflows where the total number of workflows to be exported, using a combination of both the Export Flow and Export Folder cards, does not exceed the capacity limit per workflow.
- Schedule each workflow to run one after another in 15+ minute intervals.
