Skip to content

← All questions

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

Asked 9,140 views2 answers

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?

asked by Dinuka Perera412 ·

2 answers

Have the same question?

Ask it with the command you ran and the output you got, and it will be answered here.

Ask a question

Related