while running the dbt run command gets error

Viewed 16722

connection to dbt and snowfalke was successful but when tried to run this command:

$ dbt run

it gives this error

ERROR: Runtime Error Could not find profile named 'learn_dbt' Encountered an error: Runtime Error Could not run dbt"

Am I making any command mistake?

4 Answers

There are a few different approaches to solving to this problem:

  1. Check the profile key in your dbt_project.yml
  2. Check the profiles you have in your profiles.yml
  3. Run dbt debug --config-dir to check where dbt thinks your config file is.

See the dbt documentation here

This is a problem in your profiles.yml file. You are running a project that requires you build a "dbt-learn" profile to run.

DBT profile.yml DOC

I think got the solution for this error if we give the dir name i,e dbt run --profiles-dir <path/of/.dbt folder>

Related