NO_DATA — Question has no responses
Summary
Section titled “Summary”The question exists but has no responses to operate on. Common when you create a question and try to code or generate a codebook before uploading any verbatims.
HTTP status
Section titled “HTTP status”422 Unprocessable Entity. Standard envelope.
Example response
Section titled “Example response”{ "success": false, "error": { "code": "NO_DATA", "message": "Question q_01HXJZK... has 0 responses. Upload responses before coding.", "request_id": "req_01HXJZK4ABCDEF", "doc_url": "https://docs.surveycoder.io/errors/no-data" }}Why this happens
Section titled “Why this happens”- The question was just created and no responses have been uploaded.
- All responses were filtered out (e.g. all were empty strings or
null). - A failed import left the question empty.
How to fix it
Section titled “How to fix it”- Upload responses with
POST /v1/projects/{id}/questions/{qid}/responses(or the one-callPOST /v1/codewhich includes responses inline). - Check filter rules — if all your verbatims are getting cleaned out, inspect the cleaning step. Empty strings, single-character responses, and pure whitespace are filtered by default.
- After upload, confirm
response_count > 0onGET /v1/projects/{id}/questions/{qid}before retrying.
Related
Section titled “Related”INVALID_STATE- Coding pipeline — stage 1 (ingest) drops empty/junk values