Skip to content

Written for: For developers

Error codes

16 min read · Updated 1 Dec 2026

When Astrato refuses a request for a reason of its own, the failure carries a code: the reason in lowercase snake_case. The wording of the message can change; the code does not. Branch on the code.

  • MCP tool results. A failed tool result is { ok: false, error, code, status }. status is the HTTP status of the same refusal, when it has one. A failure with no service reason, such as an upstream outage or an argument the input schema refused, has neither field. See MCP results and errors.
  • HTTP responses. The response status is the HTTP status in the table. Depending on the route, the body is { "error": { "code": "…", "message": "…" } } or { "error": "…", "code": "…" }. Some routes send an uppercase code, such as SEMANTIC_LAYER_CREATE_FORBIDDEN, at the top level of the body. Those codes are not in this table, and MCP never returns them.
Status What it means What to do
400, 411, 413, 415 The request is malformed or too large. Fix the request. Sending it again unchanged fails the same way.
401 The caller is not signed in. Sign in again, then repeat.
403 The caller is signed in but may not do this. Ask for access, or use a sign-in with the right scope.
404, 410 The resource does not exist, has expired, or is not visible to you. Check the ID. Prepare or create it again if it expired.
409, 412, 423, 428 The resource changed, is busy, or is in the wrong state. Read its current state or revision, then decide whether to repeat. The message says which.
422 The request is well formed, but the content was rejected. Change the content. The message names what was wrong.
429 A rate limit or quota was reached. Wait, then repeat.
500, 502, 503, 504 A service Astrato depends on failed, is unavailable or timed out. Repeat a read later. Before you repeat a write, read the message and check what already took effect: a code ending in _outcome_unknown may have landed, and public_data_access_refused can follow a change that stays made. If it fails the same way again, the message says what to change or whether to contact Astrato support.

A code ending in _outcome_unknown (data_action_outcome_unknown, publish_outcome_unknown, csv_upload_outcome_unknown, edit_session_commit_outcome_unknown) means a write was sent and may have landed. Check the result before you repeat it, or the write can happen twice.

Codes are in alphabetical order, and each has its own link (for example /error-codes/#version_conflict). HTTP status lists every status a code is sent with. “Or another” means that in some places the status is passed through from the service that refused the request. Example messages shows up to two messages, the most common first; … stands for a part that changes. Codes such as forbidden, not_found and invalid_request are shared by many routes, so the message is your best guide to which one refused.

Code HTTP status Example messages
access_request_app_unavailable 409 “Approving wouldn’t help: this app is unpublished or expired, or it’s public and needs no grant. Republish it or extend its expiry, or decline the request.”
access_request_decided 409 “Someone else has already answered this request.”
anonymous_favourite_forbidden 403 “Sign in to star an app.”
anonymous_publication_required 403 “Reopen this public publication to obtain an anonymous session.”
app_changed 409 “The publication changed. Reload the application.”
app_expired 404 “The publication has expired.”
app_unavailable 409, 503 “Invalid publication network enforcement configuration.”
“The pinned publication model is unavailable. Republish the application against the current semantic layer.”
app_unpublished 404 “The publication is no longer published.”
artifact_mismatch 400, 413, 422 “Uploaded artifact size does not match its manifest.”
“Upload exceeds the prepared length.”
artifact_unreadable 422 “Uploaded artifact could not be read (…).”
artifact_upload_failed 502 “App storage upload failed. Retry publishing.”
authorization_upstream_error 502, 503 or another “Owner provisioning returned an invalid response”
“Central authorization did not return the new grant”
builder_node_unavailable 409 “The selected semantic layer has no data connection.”
“No Builder runtime host is configured for the selected data node.”
builder_source_changed 409 “The Builder source changed after this build. Review the preview, then publish again.”
builder_source_forbidden 403 “Only the owner of the Builder app linked to this Data App can publish its source.”
builder_unavailable 400, 503 “Invalid Builder request.”
“Builder storage or execution is unavailable.”
caller_ip_not_allowed 400 “Your current IP address must be in the list while IP restriction is on. Add it, or a range that contains it, so you do not lock yourself out”
connection_change_processing 409 “This connection change is already processing. Retry the same request later. If no request is still running, the preparation clears at …; prepare the connection again after that.”
connection_change_uncertain 409 “The previous write may have succeeded. Inspect the saved connections before starting another change.”
connection_preparation_conflict 409 “Connection preparation changed concurrently. Retry this request.”
connection_preparation_expired 410 “Connection preparation expired. Prepare the connection again.”
connection_preparation_forbidden 403 “That connection preparation belongs to another caller.”
connection_preparation_settled 409 “This connection change is already … and cannot become …”
“This connection change is already …, so its record cannot be changed.”
corrupt_archive 503 “Preview failed its integrity check.”
“Stored source failed its integrity check.”
csv_upload_already_uploaded 409 “A file was already uploaded to this slot. Import it, or prepare a new import.”
csv_upload_digest_mismatch 422 “This file does not match the SHA-256 declared when the import was prepared. Nothing was stored.”
csv_upload_imported 409 “This file was already imported… Read the connection’s source catalog for the table instead of importing again.”
csv_upload_importing 409 “This file is being imported by another call. Wait for that call to return; do not prepare a new import, or the file may be imported twice.”
csv_upload_not_found 404 “That CSV upload is not found, has expired, or belongs to another user. Prepare a new import.”
csv_upload_not_uploaded 409 “No file has been uploaded to this slot yet. PUT the CSV to upload.url first, then import.”
csv_upload_outcome_unknown 409 “The import of this file was sent, but whether it created the table is unknown. Check the connection for the table before preparing a new import.”
csv_upload_wrong_connection 409 “That importId was prepared for a different data connection.”
data_action_anonymous_refused 403 “Data actions are not available to anonymous viewers of a public publication.”
data_action_connection_inaccessible 403 “Workflow “…” cannot run: you do not have access to the connection this layer uses, or it no longer exists. Ask the layer’s owner to share the connection with you.”
data_action_connection_unsupported 422 “Workflow “…” cannot run: …“
“Workflow “…” cannot run: … cannot run workflows. Switch the layer to a connection that can, in Developer View. Rewriting the workflow will not help.”
data_action_execution_unavailable 500, 503 “The data action did not run.”
“Data actions are unavailable.”
data_action_forbidden 403 “You are not allowed to run this data action.”
data_action_not_found 404 “The published layer has no data action named “…”. Published actions: …”
data_action_outcome_unknown 502 “The engine answered with an unreadable result. The write may have run; check the data.”
“The run was interrupted and its outcome is unknown. Check the data before running it again.”
data_action_refused 409 or another “The engine refused the data action (…).”
data_action_run_log_unavailable 503 “The usage log is unavailable.”
data_action_scope_required 403 “This sign-in cannot run data actions. Sign in again to grant access.”
data_actions_disabled 403 “Data actions are not enabled.”
“Workflow “…” cannot run: Business Workflows are not enabled for this workspace. Ask your administrator to have them enabled.”
datasource_authorization_configuration_required 409 “This account has no compatible browser authorization option. Ask your workspace administrator to configure an OAuth connection for the datasource provider and exact account with …”
datasource_authorization_discovery_failed 502 “Astrato could not discover datasource authorization options. Try again; if the problem persists, ask your workspace administrator to check the authorization service.”
datasource_authorization_required 403 “Datasource sign-in is required.”
dependency_lock 409 “Edits cannot remove package-lock.json. …”
“This edit changes package.json dependencies that package-lock.json does not record: … . …”
dimension_suggestions_failed 502 “Dimension suggestions failed”
document_runtime_unavailable 503 “The semantic runtime could not prepare the published snapshot: …”
draft_datasource_mismatch 409 “The draft datasource differs from the stored semantic layer.”
draft_join_analysis_unavailable 503 “The installed runtime or data-engine client does not support draft join analysis.”
draft_join_quality_unavailable 503 “The installed data-engine client does not support saved-draft join quality.”
draft_query_failed 502 “Draft query failed”
draft_query_unavailable 409, 503 “Draft semantic execution is unavailable.”
“Draft execution is unavailable.”
edit_session_commit_in_progress 409 “MCP edit session … is being committed by another call, so it accepts no further changes. Wait for that commit to return. If no commit call is still running, re-read the semantic …”
edit_session_commit_outcome_unknown 502 “MCP edit session … was sent for commit, but whether the revision was saved is unknown. Re-read the semantic layer to see whether its changes landed before beginning a new edit …”
edit_session_committed 409 “MCP edit session … was already committed as revision … Its changes are saved; begin a new edit session for further edits.”
edit_session_not_found 404 “MCP edit session not found: … It expired after inactivity or never existed. Re-read the semantic layer to see its current revision, then begin a new edit session.”
edit_session_rolled_back 409 “MCP edit session … was rolled back and its changes were discarded. Begin a new edit session.”
execution_busy 409 “Another browser operation is active. Wait for its result.”
execution_cancelled 409 “This browser execution was cancelled. Previously committed effects remain; read current source before starting new work.”
execution_superseded 409 “App source changed while this browser execution was pending, so its result cannot be accepted and no source or preview from it was saved. Read current source, then rerun the …”
execution_timeout 409 “The result of this step did not reach Builder before its deadline. A build, inspection or interaction saved nothing: run it again if you still need it. After a command, read the …”
exit_node_required 403, 409 “Draft queries require exit-node routing.”
“Draft join analysis requires exit-node routing.”
external_embedding_disabled 403 “Public publication access is disabled.”
“External embedding is disabled for this tenant.”
feature_disabled 403 “Questions are not available to Apps here.”
“Pinboards are not available to Apps here.”
forbidden 403 “Semantic layer access denied.”
“You cannot edit this collection.”
history_quota 413 “App history has reached its storage quota. Existing versions are preserved.”
idempotency_conflict 409 “The idempotency key was already used for a different publish request.”
“This creation key belongs to a different app request.”
insufficient_scope 403 “Publication state scope is required.”
internal_error 500 “Publication request failed.”
invalid_arguments 400 “arguments[…] must be an object.”
“arguments must be a nonempty array of argument objects; use [{}] for an action without parameters.”
invalid_draft 422 “The draft cannot be compiled.”
invalid_draft_revision 400 “A saved draft revision and headToken are required.”
“A current draft revision and headToken are required.”
invalid_edits 400 “Send 1–128 file edits.”
invalid_engine_response 502 “The engine returned an invalid join analysis response.”
“The engine returned an invalid join quality response.”
invalid_generation 409 “This editing generation was never issued for this app. Read Builder Source and wait for its result. If its lease.generation differs from a generation you read earlier, Builder …”
“Read Builder Source before the first edit, restore or execution of this turn, wait for its result, and use its lease generation and revision. Values from an earlier turn are not …”
invalid_join_pair 400 “Two distinct draft views are required.”
“The selected views are not in the current draft.”
invalid_join_quality 400 “A complete saved join is required.”
“Every join predicate must identify both fields and a supported comparator.”
invalid_layer_theme_change 400
invalid_manifest 400 “Every publish file has an invalid shape.”
“A publish must contain index.html.”
invalid_operation 400 “Expected availability, metadata or query operation.”
invalid_parameter_value 400 “arguments[…].… is not a valid …: …”
invalid_path 400 “Use a relative authored file path.”
invalid_placement 400, 409 “Invalid publication hosting selection.”
“Choose the data-node default or an available publication location.”
invalid_query 400 “An engine query object is required.”
invalid_request 400, 411, 415 “Web page could not be fetched (…).…”
“Invalid viewer request.”
invalid_result 400 “Only package commands can return source changes.”
invalid_source 400, 409 “Send exactly one path with offset …: the path whose page returned it. Read the other paths in a separate call, without offset.”
“… has no readable source; no edit was applied.”
invalid_state 400 “Invalid publication state.”
invalid_theme 400
invalid_theme_change 400
join_analysis_failed 502 or another “Data-backed join quality failed”
“Data-backed join analysis failed”
join_not_in_draft 409 “The requested predicates do not match a complete join in the saved draft.”
lease_lost 409 “Builder editing changed or disconnected during this turn, so it can no longer edit or run browser actions. Stop editing and browser execution and tell the user. Ask them to …”
“This Builder editing session ended or was replaced, so it no longer authorizes changes. Stop editing and browser execution until the user asks you to continue; if Builder shows …”
locked 423 “Editing is currently locked by … You can view the preview while they work.”
missing_file 409 “The file no longer exists.”
missing_parameter 400 “arguments[…] is missing required parameters: …”
missing_semantic_layer_id 400 “semanticLayerId is required.”
network_context_required 403 “Invalid viewer network context.”
“Verified viewer network context is required.”
not_found 404 “Publication was not found.”
“Route not found.”
operation_conflict 409 “Invalid Builder operation identity.”
“Builder execution evidence does not match this request.”
operation_consumed 409 “This result was already consumed by a saved Nash checkpoint.”
operation_not_started 409 “The owner confirms this browser operation was never picked up.”
“The preview step did not start: the Builder tab has not taken any work for over a minute, so nothing from this step was saved and the source is unchanged. This is not a fault in …”
operation_uncertain 409 “Nash recovery stopped: …”
“Nash operation capture failed; execution stopped”
patch_conflict 409
pinboard_forbidden 403 “You can’t change that pinboard.”
pinboard_not_found 404 “That pinboard isn’t available.”
preview_mismatch 409 “The workflow was published again after you approved it. Ask for it again to see what it does now.”
“The action, its arguments or the published layer differ from the preview. Call without confirm to preview exactly what will run and ask the user again.”
preview_required 400 “Call without confirm first, show the user the preview, then send confirm true with its previewToken.”
private_recovery_held 409 “Private chat recovery needs attention”
private_recovery_invalid_receipt 400 “Private recovery receipt is invalid”
private_recovery_unavailable 503 “Private recovery is unavailable”
“Private chat recovery is unavailable”
public_data_access_refused 502 or another “Could not open … to public viewers. … Opening it needs permission to manage its access. This call had already opened …, which stays open. The app was not changed.”
public_data_connection_per_viewer 409 “Public unavailable: this app’s data connection … . Nothing was changed or granted. A public app needs a data connection with one shared credential: a password, key pair or …”
public_data_connection_unverified 502 or another “Could not check how data connection … authenticates, so the app was not made public and nothing was granted. …”
publication_access_disabled 403 “Public publication access is disabled.”
“Publication access settings are disabled.”
publication_deleted 409 “This create key belongs to a deleted publication. Use a new key.”
publication_grant_unavailable 503 “The token issuer returned an invalid data grant.”
publication_header_limit_exceeded 502 “This app could not be loaded because a service limit was exceeded. Contact Astrato support and share this request ID.”
publication_identity_mismatch 409 “The publication identity is invalid.”
publication_location_changed 409 “The data exit node changed during upload. Publish again with a new operation key to use its current publication location.”
“The data exit node changed. Open publication properties and apply the default location, or explicitly choose a different publication location.”
publication_node_required 409 “No publication node is configured for this data exit node. Ask your administrator to configure it, or choose a different publication location.”
“There is no publication node configured for this data exit node. Default mode must use the same node. Ask your administrator to configure it, or explicitly choose a different …”
publication_required 409 “The semantic layer has not been published.”
publish_not_pending 409 “Publication upload is not pending.”
publish_outcome_unknown 502 “Astrato answered the publish with a server error, and SLE could not verify whether it completed. Wait a moment and reload the layer before publishing again.”
“Astrato did not confirm the publish before the timeout, and SLE could not verify whether it completed. Wait a moment and reload the layer before publishing again.”
publish_refused 502 or another “DA-engine publish failed (…)…”
publish_rejected 422 “The previous publish attempt was rejected.”
“The publication upload was rejected.”
published 409 “Published Data Apps are deleted from their publication.”
question_anonymous_refused 403 “Questions are not available to anonymous viewers of a public publication.”
question_filter_unreachable 422 “A filter cannot reach the rows this question measures.”
question_forbidden 403 “Semantic layer access denied.”
“You are not allowed to run this question.”
question_input_invalid 400 “The filters or parameters do not fit this question.”
question_not_found 404 “The published layer has no question by that name.”
“The semantic layer was not found.”
question_run_failed 502, 503 “The question could not be answered.”
“The question answered with more than an App can draw.”
question_timeout 504 “The question took too long to answer.”
recovery_storage_unavailable 409 “Builder recovery storage is not ready. Keep paused work in this tab, allow storage for this site or free browser storage space, then reconnect. Do not repeat an action with an …”
rename_conflict 409 “Rename source must exist and destination must be unused.”
reserved_publication_path 400 “Publish path is reserved by Astrato: …”
result_too_large 413 “Browser result exceeds its size limit.”
revision_conflict 409 “Read the current source before requesting execution.”
“App source changed. Read the current revision before editing.”
run_replaced 409
runtime_request_failed 401, 403, 404, 429, 502 “Astrato refused the publication request.”
semantic_layer_invalid 409 “The published semantic layer has no data connection.”
semantic_layer_unpublished 409 “The semantic layer must be published before the app can be published.”
stale_draft 409 “The draft changed. Save it and run the query again.”
“The draft changed. Save the current draft and run join analysis again.”
stale_execution 409 “Source changed while building.”
“The build does not match the requested revision.”
state_creation_disabled 403 “State creation is disabled.”
state_idempotency_conflict 409 “This idempotency key has a different request.”
state_integrity_failed 502 “Stored state could not be verified.”
state_limit_exceeded 413 “Publication state exceeds its limits.”
state_name_exists 409 “State name already exists.”
state_not_found 404 “Publication state not found.”
state_precondition_failed 412 “Publication state has changed.”
state_precondition_required 428 “An expected state ETag is required.”
state_quota_exceeded 429 “Publication state quota or rate limit reached.”
state_storage_unavailable 503 “State storage is unavailable.”
state_unavailable 503 “Publication states are unavailable.”
theme_archived 409
theme_change_forbidden 403
theme_name_taken 409
theme_not_found 404
theme_read_only 409
theme_state_conflict 409
theme_unavailable 503 “The app’s theme could not be read, so src/theme.css was not changed and no other edit in this call was applied. Try again shortly.”
theme_version_conflict 409 “… Read it again with …, apply the change to version … and send expectedVersion …”
too_many_invocations 400 “A single run takes at most … argument objects.”
unauthenticated 401 “Verified viewer identity is required.”
unknown_parameter 400 “arguments[…] names parameters the action does not declare: …”
unsupported_datasource 409 “The datasource has no supported semantic runtime.”
“This datasource has no supported semantic runtime.”
upload_too_large 413 “Browser upload exceeds the 50 MB file limit.”
version_conflict 409 “Publication version changed.”
“Publication upload changed.”
waiting_for_browser 409 “This app has no Builder tab connected for editing as the signed-in user. Editing connects automatically while the app is open in Builder and no other editing session holds it; if …”

This table is generated from the Astrato API source by scripts/generate-error-codes.mjs, and a check fails when the two disagree. It lists codes that are sent with an HTTP status. A code computed at run time, such as one passed through from a data warehouse, is not listed.

Three codes were retired with Contract 12.0.0, because a layer always draws in the current version of its theme and there is no theme update to publish: draft_not_restored, layer_not_published and layer_theme_up_to_date. engine_changed is no longer listed because the API no longer sends it as an error code.