Home / dbt / Projects and profiles
dbt: Runtime Error: Could not find profile named '...'
Could not find profile named 'shop'The profile named in dbt_project.yml does not exist in the profiles.yml dbt is reading. Usually dbt is reading a different profiles.yml than expected, or the profile key is misspelled.
Common causes
- profiles.yml is not where dbt looks: by default ~/.dbt/, or the directory in --profiles-dir or DBT_PROFILES_DIR.How to confirm: Run dbt debug; it prints the profiles.yml path it uses.
- The profile key in profiles.yml does not match profile: in dbt_project.yml.How to confirm: Compare the top-level keys of profiles.yml with the profile setting.
How to fix it
Point dbt at the right file with --profiles-dir or DBT_PROFILES_DIR, and make the top-level key match the profile name in dbt_project.yml.
Where the message comes from
profile.pyindbt-labs/dbt-coreatv1.12.6- Message checked in dbt-core 1.12.6
Message template in the source: Could not find profile named '%s'