Error codes
Every error the Dataflow API returns, with its HTTP status and what to do.
Every error of the Dataflow API has the same shape:
{
"error": {
"code": "mapping_invalid",
"message": "The mapping does not fit the endpoint or the input",
"details": [{ "param": "domain", "message": "Required parameter is not mapped" }],
"request_id": "6f1d0c62-…"
}
}Branch on code, which never changes; message is for people and may. details is there when there is more to say. Quote the request_id (also in the x-request-id header) when you contact support. To follow a request in your own logs, send your own x-request-id (8 to 128 letters, digits, ., _ or -): Dataflow keeps it.
These are the errors of the API itself. The errors of each row's call to the Piloterr API are in the run's results, with the API's own status codes. Why a run failed or was cancelled is in its reason: see Statuses.
Authentication
| Status | Code | What to do |
|---|---|---|
401 | missing_api_key | Send your key in the x-api-key header. |
401 | invalid_api_key | Check the key under API → API keys in the dashboard. |
401 | inactive_api_key | Turn the key back on, or use another one. |
401 | expired_api_key | Use a key that has not expired. |
403 | account_deactivated | Your workspace is deactivated: contact support. |
403 | account_pending_approval | Your account is waiting for approval. |
403 | ip_blocked | Too many invalid keys from this IP. Wait, then try with a valid key. |
403 | api_key_scope | The key's Dataflow access does not cover this route (details.required, details.access), or a development key asked for webhooks, cloud storage, deliveries or purge=true (details.category). Raise its access under API → API keys, or use a production key. See What a key can do. |
429 | rate_limited | Over 120 requests per minute or 10 per second for this key, or 240 per minute or 20 per second for your workspace's keys together (details.scope is "key" or "account"). Wait Retry-After seconds (also in details.retry_after). The test, preview and cloud test limits answer it too: see Limits. |
Requests
| Status | Code | What to do |
|---|---|---|
400 | bad_request | The body is not valid JSON. |
413 | payload_too_large | A request body is over 1 MB. Only file uploads (POST /v1/inputs) may be larger: see input_too_large. |
422 | validation_failed | A field is missing or wrong. details lists each problem with its path and message when the request does not fit its schema, and when it names something your workspace does not have: an input.input_id that is not one of your inputs, an unknown alert channel (items.0.channel_id, alert_channel_ids.0) or a channel given twice (items), an unknown connection_id. Otherwise message says what is wrong. |
404 | not_found | No such route. Check the method and path. |
422 | idempotency_key_reused | This Idempotency-Key was already used, within 24 hours, for a request with another body or on another path. Use a new key for a new request. See Send a request again safely. |
409 | idempotency_key_in_progress | A request with this Idempotency-Key is still being answered. Wait for it, then send it again: you get its answer. |
404 | project_not_found, run_not_found, template_not_found, channel_not_found, webhook_not_found, event_not_found, delivery_not_found, connection_not_found, address_not_found | No such resource for your workspace. |
500 | internal_error | Something broke on our side. Try again; contact support with the request_id if it lasts. |
Inputs
| Status | Code | What to do |
|---|---|---|
413 | input_too_large | Keep files under 50 MB. |
422 | input_empty | The file has no rows below its header line, or the list has no value. |
422 | input_too_many_rows | Split the file: 100,000 rows at most, 500 lines for a list. |
422 | input_too_many_columns | Remove columns: 1,000 at most. |
422 | input_cell_too_large | Shorten the value at details.row, details.column: 32,767 characters at most, column names included. |
422 | input_row_too_large | Shorten the row at details.row: 262,144 characters at most in all. |
422 | input_unreadable | Save the file again in a supported format, with the right extension. |
422 | input_sheet_not_found | Use a sheet name from sheets. |
422 | input_unsafe | The spreadsheet is too large once unzipped, or holds too many parts; or an HTML, XML or binary .xls file is over 20 MB; or the file takes more than 60 s, or too much memory, to read. Save it as CSV. |
429 | parse_busy | Your workspace is already reading a file (one at a time), or too many files wait. Send it again after the seconds in Retry-After. |
404 | input_not_found | No such input for your workspace, when you parse or check it. Upload the file again. |
409 | input_not_uploaded | Send the file to the upload_url first. |
409 | input_no_file | A list cannot be parsed again. |
409 | input_not_remote | Only a project with a URL or search input has an input to read now. A file or a list is already in GET /v1/projects/{id}/input. |
422 | source_unreachable | The URL could not be read or parsed, or the search failed or found nothing: message says why. |
422 | search_invalid | A search input whose endpoint is not a usable search, with no search or more than 100, with a parameter the endpoint does not take (query and page included) or without one it needs, or with more than 1,000 calls per run (searches × pages). |
402 | insufficient_credits | Your workspace ran out of credits while the search ran (details.stage: "search"). Top up, then try again. |
422 | api_key_invalid | The key the search runs with cannot be used: the project's own key is gone, inactive or expired, or the managed Dataflow key is inactive. See API key. |
429 | rate_limited | More than 10 URL and search previews this minute for your workspace (POST /v1/inputs/url/preview, POST /v1/inputs/search/preview, POST /v1/projects/{id}/input/preview together). Wait Retry-After seconds. |
Projects
| Status | Code | What to do |
|---|---|---|
422 | endpoint_not_eligible | Pick an endpoint from GET /v1/endpoints. |
422 | validation_failed | With details[0].path input.input_id: no such input. Upload it before you create the project. |
422 | mapping_invalid | Fix the mapping: details lists each parameter (param) and what is wrong (message). |
422 | schedule_invalid | Fix the time zone or the cron expression; runs must be one hour apart. |
422 | api_key_invalid | The api_key_id is not one of your workspace's keys, or is inactive or expired; or the managed Dataflow key the project would use is inactive. Pick one from GET /v1/api-keys. See API key. |
402 | insufficient_credits | Saving a project with a search input runs its first page: your workspace ran out of credits for it (details.stage: "search"). |
409 | projects_limit | Your workspace has as many projects as it may: 500 by default, archived ones aside (details.max_projects is your workspace's limit, details.project_count the projects that count). Archive or delete one first, or contact support. Also when duplicating a project, creating one from a template, or unarchiving one: see Limits. |
422 | validation_failed | With details[0].path max_cost_per_run: the endpoint is billed per result or per GB, and a project on it needs a max_cost_per_run. See Project settings. |
409 | project_archived | The project is archived and cannot change. Send {"archived": false} to unarchive it (see Retention and deletion). |
409 | run_in_progress | Cancel the run in progress (details.run_id) before you delete the project with purge=true. |
503 | encryption_unavailable | A URL input's headers cannot be stored right now. Try again later. |
Runs
| Status | Code | What to do |
|---|---|---|
402 | insufficient_credits | Top up, or start with ?force=true: the run pauses when credits run out. details has required (every row at the endpoint's credit cost, or less when max_cost_per_run lets the run spend less) and available, plus estimated: true when the endpoint is billed per result or per GB. With details.stage: "search", the project's search input ran out of credits before the run could start: force does not help, top up. |
403 | dataflow_disabled | Dataflow is switched off for now. Try again later. Launches, resumes and retries are refused, and so is what sends data out on request (destination and alert tests, resends, a delivery sent again, cloud connection tests, confirmation emails). Webhooks, deliveries, alerts and digests send nothing meanwhile. |
403 | account_dataflow_disabled | Dataflow is switched off for your workspace: contact support. The same applies as for dataflow_disabled. |
409 | run_in_progress | The project already has a run going. details.run_id is that run. |
409 | project_archived | The project is archived: unarchive it, or create a new one. |
409 | project_disabled | The project was stopped; message and the project's disabled_reason say why. auto_failures: send its schedule again after a fix. api_key_invalid: set another api_key_id. admin: contact support. |
409 | endpoint_not_eligible | The endpoint can no longer run in Dataflow. |
409 | input_missing | The project's uploaded file or list is gone: upload it again and update the project. |
409 | rows_limit_exceeded | The input has more rows than your workspace may run at once. details has rows and max_rows_per_run. |
409 | concurrent_runs_limit | Too many runs going at once on your workspace: 3 by default. Wait for one to finish. details has active and max_concurrent_runs. |
409 | run_finished | The run already completed or failed: nothing to cancel. Cancelling a cancelled run answers 200. |
409 | run_not_paused | Only a paused run can resume. |
409 | nothing_to_retry | No failed row qualifies. Add include_non_recoverable=true to retry the others. details.non_recoverable counts them. |
409 | run_not_finished | Compare runs, or send a delivery again, once the run has ended. |
409 | no_previous_run | The project has no earlier completed run to compare with: name one with ?against=RUN_ID. |
409 | run_read_no_rows | The run, or the against run, failed or was cancelled before reading any row: there is nothing to compare. |
422 | not_same_project, same_run | Compare two different runs of the same project. |
422 | validation_failed | With details[0].path next: the next is not one this list gave. Start again without it. |
410 | results_expired | The results were deleted 30 days after the run ended. A download link to them answers it too. |
410 | link_revoked, link_expired, link_gone | A download link was revoked, has expired, or its run or project was deleted. Ask for a new link. |
404 | link_not_found | Not a download link of Dataflow, or one signed with a key Dataflow no longer has. |
503 | queue_unavailable | Starting, resuming or retrying a run: it could not be queued, and nothing was started. Try again in a moment. |
Notifications and deliveries
| Status | Code | What to do |
|---|---|---|
409 | channels_limit | A workspace has at most 50 alert channels (details.max_channels). Remove one first. |
409 | recipients_unconfirmed | Testing an email channel none of whose recipients can receive alerts yet: they must be members of the workspace or confirm their address. |
409 | webhooks_limit | A workspace has at most 20 webhook destinations (details.max_destinations). Remove one first. |
409 | webhook_disabled | Resending an event to a turned-off destination. Turn it on first. |
409 | deliveries_limit | A project has at most 10 deliveries. Remove one first. |
409 | connections_limit | A workspace has at most 20 cloud storage connections. Remove one first. |
429 | rate_limited | A test past its limit: one a minute per alert channel or webhook destination and 20 an hour per workspace for each; 10 cloud connection tests a minute and 60 an hour per workspace. Wait Retry-After seconds. A test the bucket refuses answers 200 with ok: false and a code per step (Test the permissions). |
429 | confirmation_quota | The confirmation emails this needs would pass your workspace's 50 a day (details.reason: "daily", with remaining and requested), or its 100 addresses waiting for their confirmation (details.reason: "pending"). Nothing was saved or sent: the delivery or channel is not created or changed. Try again after 00:00 UTC (Retry-After), with fewer new addresses, or remove addresses that never confirmed (DELETE /v1/email-addresses/{id}). |
502 | channel_failed | Slack, Discord or the mail service refused the test. message has their answer. |
503 | email_not_configured | Testing an email alert channel while Dataflow cannot send email: nothing was sent. Try again later. |
502 | outpost_failed | The webhook service failed. Try again. |
503 | webhooks_unavailable | Webhooks are not available right now. |
503 | encryption_unavailable | Slack and Discord channels, email confirmations, and email and cloud storage deliveries cannot be set up right now. |