Piloterr

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

StatusCodeWhat to do
401missing_api_keySend your key in the x-api-key header.
401invalid_api_keyCheck the key under API → API keys in the dashboard.
401inactive_api_keyTurn the key back on, or use another one.
401expired_api_keyUse a key that has not expired.
403account_deactivatedYour workspace is deactivated: contact support.
403account_pending_approvalYour account is waiting for approval.
403ip_blockedToo many invalid keys from this IP. Wait, then try with a valid key.
403api_key_scopeThe 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.
429rate_limitedOver 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

StatusCodeWhat to do
400bad_requestThe body is not valid JSON.
413payload_too_largeA request body is over 1 MB. Only file uploads (POST /v1/inputs) may be larger: see input_too_large.
422validation_failedA 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.
404not_foundNo such route. Check the method and path.
422idempotency_key_reusedThis 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.
409idempotency_key_in_progressA request with this Idempotency-Key is still being answered. Wait for it, then send it again: you get its answer.
404project_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_foundNo such resource for your workspace.
500internal_errorSomething broke on our side. Try again; contact support with the request_id if it lasts.

Inputs

StatusCodeWhat to do
413input_too_largeKeep files under 50 MB.
422input_emptyThe file has no rows below its header line, or the list has no value.
422input_too_many_rowsSplit the file: 100,000 rows at most, 500 lines for a list.
422input_too_many_columnsRemove columns: 1,000 at most.
422input_cell_too_largeShorten the value at details.row, details.column: 32,767 characters at most, column names included.
422input_row_too_largeShorten the row at details.row: 262,144 characters at most in all.
422input_unreadableSave the file again in a supported format, with the right extension.
422input_sheet_not_foundUse a sheet name from sheets.
422input_unsafeThe 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.
429parse_busyYour workspace is already reading a file (one at a time), or too many files wait. Send it again after the seconds in Retry-After.
404input_not_foundNo such input for your workspace, when you parse or check it. Upload the file again.
409input_not_uploadedSend the file to the upload_url first.
409input_no_fileA list cannot be parsed again.
409input_not_remoteOnly 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.
422source_unreachableThe URL could not be read or parsed, or the search failed or found nothing: message says why.
422search_invalidA 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).
402insufficient_creditsYour workspace ran out of credits while the search ran (details.stage: "search"). Top up, then try again.
422api_key_invalidThe 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.
429rate_limitedMore 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

StatusCodeWhat to do
422endpoint_not_eligiblePick an endpoint from GET /v1/endpoints.
422validation_failedWith details[0].path input.input_id: no such input. Upload it before you create the project.
422mapping_invalidFix the mapping: details lists each parameter (param) and what is wrong (message).
422schedule_invalidFix the time zone or the cron expression; runs must be one hour apart.
422api_key_invalidThe 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.
402insufficient_creditsSaving a project with a search input runs its first page: your workspace ran out of credits for it (details.stage: "search").
409projects_limitYour 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.
422validation_failedWith 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.
409project_archivedThe project is archived and cannot change. Send {"archived": false} to unarchive it (see Retention and deletion).
409run_in_progressCancel the run in progress (details.run_id) before you delete the project with purge=true.
503encryption_unavailableA URL input's headers cannot be stored right now. Try again later.

Runs

StatusCodeWhat to do
402insufficient_creditsTop 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.
403dataflow_disabledDataflow 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.
403account_dataflow_disabledDataflow is switched off for your workspace: contact support. The same applies as for dataflow_disabled.
409run_in_progressThe project already has a run going. details.run_id is that run.
409project_archivedThe project is archived: unarchive it, or create a new one.
409project_disabledThe 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.
409endpoint_not_eligibleThe endpoint can no longer run in Dataflow.
409input_missingThe project's uploaded file or list is gone: upload it again and update the project.
409rows_limit_exceededThe input has more rows than your workspace may run at once. details has rows and max_rows_per_run.
409concurrent_runs_limitToo many runs going at once on your workspace: 3 by default. Wait for one to finish. details has active and max_concurrent_runs.
409run_finishedThe run already completed or failed: nothing to cancel. Cancelling a cancelled run answers 200.
409run_not_pausedOnly a paused run can resume.
409nothing_to_retryNo failed row qualifies. Add include_non_recoverable=true to retry the others. details.non_recoverable counts them.
409run_not_finishedCompare runs, or send a delivery again, once the run has ended.
409no_previous_runThe project has no earlier completed run to compare with: name one with ?against=RUN_ID.
409run_read_no_rowsThe run, or the against run, failed or was cancelled before reading any row: there is nothing to compare.
422not_same_project, same_runCompare two different runs of the same project.
422validation_failedWith details[0].path next: the next is not one this list gave. Start again without it.
410results_expiredThe results were deleted 30 days after the run ended. A download link to them answers it too.
410link_revoked, link_expired, link_goneA download link was revoked, has expired, or its run or project was deleted. Ask for a new link.
404link_not_foundNot a download link of Dataflow, or one signed with a key Dataflow no longer has.
503queue_unavailableStarting, resuming or retrying a run: it could not be queued, and nothing was started. Try again in a moment.

Notifications and deliveries

StatusCodeWhat to do
409channels_limitA workspace has at most 50 alert channels (details.max_channels). Remove one first.
409recipients_unconfirmedTesting an email channel none of whose recipients can receive alerts yet: they must be members of the workspace or confirm their address.
409webhooks_limitA workspace has at most 20 webhook destinations (details.max_destinations). Remove one first.
409webhook_disabledResending an event to a turned-off destination. Turn it on first.
409deliveries_limitA project has at most 10 deliveries. Remove one first.
409connections_limitA workspace has at most 20 cloud storage connections. Remove one first.
429rate_limitedA 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).
429confirmation_quotaThe 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}).
502channel_failedSlack, Discord or the mail service refused the test. message has their answer.
503email_not_configuredTesting an email alert channel while Dataflow cannot send email: nothing was sent. Try again later.
502outpost_failedThe webhook service failed. Try again.
503webhooks_unavailableWebhooks are not available right now.
503encryption_unavailableSlack and Discord channels, email confirmations, and email and cloud storage deliveries cannot be set up right now.

On this page