Skip to content

NO_DATA — Question has no responses

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.

422 Unprocessable Entity. Standard envelope.

{
"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"
}
}
  • 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.
  1. Upload responses with POST /v1/projects/{id}/questions/{qid}/responses (or the one-call POST /v1/code which includes responses inline).
  2. 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.
  3. After upload, confirm response_count > 0 on GET /v1/projects/{id}/questions/{qid} before retrying.