Skip to content

← All questions

DATASET_NOT_FOUND says my dataset is not declared, but the CSV is right there

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

Trying to drive the login scenarios from a CSV instead of an Examples table. The file is at projects/demo-shop/data/common/users.csv and previewing it works:

bash
sdods data preview projects/demo-shop/data/common/users.csv

Six rows, columns id, username, password, role, displayName. Exactly what I want.

The scenario dies on the first step though:

text
✖ DATASET_NOT_FOUND: Dataset "users" is not declared for project demo-shop.
  hint: Known datasets: logins, posts. Add it under data.sources in sdods.project.yaml.

The step is:

gherkin
Given I load dataset "users" row 0

If the file is on disk and the CLI can read it, why does the runner care what the yaml says?

2 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related