Skip to content

← All questions

No data file for "data/{env}/users.csv" in env "staging" when the common file exists

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.

bash
sdods run -p shop -e staging -l ui -t @data-driven
text
✖ DATASET_NOT_FOUND: No data file for "data/{env}/users.csv" in env "staging".
  hint: Tried: /work/shop/projects/shop/data/staging/users.csv, /work/shop/projects/shop/data/common/users.csv

Declared like this:

yaml
data:
  sources:
    users: { type: csv, path: 'data/{env}/users.csv' }

There is no data/staging/ directory, which is fine, that was the plan — every environment was supposed to fall back to the common file. And there is a common file. It is called data/common/logins.csv.

I read the resolution order as "try the env path, then fall back to common", so I expected it to find it.

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