<#C02CTC89LAX|> I am getting this error Please h...
# community-support
v
#C02CTC89LAX I am getting this error Please help ! 2023-11-07 185009 — ERROR — Unable to get the latest invocation: Failed to run dbt command. Encountered an error: Runtime Error The profile 'elementary' does not have a target named 'default'. The valid target names for this profile are: - dev - prod 2023-11-07 185015 — ERROR — Failed to parse Elementary's database and schema. my
profile.yml
file
Copy code
elementary:
  outputs:
    dev:
      type: "snowflake"
      account: "name"
      user: "user"
      password: "pwsd"
      role: "role"
      warehouse: "WH"
      database: "db"
      schema: "Schema"
      threads: 8
    prod:
      type: snowflake
      account: name
      user: "user"
      password: "pwsd"
      role: role
      warehouse: WH
      database: Db
      schema: Schema
      threads: 8
@Or Avidov @Ella Katz .
i
Hey @vinit! can you add
target: dev
to your profile (above the outputs)? Or running the edr command with the additional of
-t dev/prod
?
v
thank @Idan Shavit this worked
r
@Idan Shavit If I have this config and I run "edr report --env prod" will it use the prod conn to generate the report? Thnx in advance!
i
Hey @Rodrigo Naspleda, the
--env
param affect a field in the report / alerts that are sending and its cosmetic only. To use your prod profile, you can pass
--target prod
or
-t prod
to any of our cli commands 🙂
🙌 1
r
Thanks!!