Hi all, I am trying to get elementary connected to...
# community-support
l
Hi all, I am trying to get elementary connected to our dagster/dbt based pipelines. after successfully running my dbt tests, I am getting the following error trying to generate a report. Any ideas? I have looked at the githiub issuyes and done a search here, but don't see this error anywhere...
Copy code
2025-09-05 10:57:34 — INFO — Running with edr=0.19.5
{"data": {"exc": "Runtime Error\n  Credentials in profile \"elementary\", target \"default\" invalid: Runtime Error\n    Got duplicate keys: (catalog) all map to \"database\""}, "info": {"category": "", "code": "Z002", "extra": {}, "invocation_id": "f946956e-13a5-4569-976d-c5a86e0b72bc", "level": "error", "msg": "Encountered an error:\nRuntime Error\n  Credentials in profile \"elementary\", target \"default\" invalid: Runtime Error\n    Got duplicate keys: (catalog) all map to \"database\"", "name": "MainEncounteredError", "pid": 51788, "thread": "MainThread", "ts": "2025-09-05T15:57:35.219464Z"}}
2025-09-05 10:57:35 — ERROR — Unable to get the latest invocation: Failed to run dbt command.
Runtime Error
  Credentials in profile "elementary", target "default" invalid: Runtime Error
    Got duplicate keys: (catalog) all map to "database"
j
Hey Lauren! This seems to be a small misconfiguration in your
profiles.yml
file. Are you on Databricks? If you share the
profiles.yml
(redact secrets) profile you are using I can help debug
l
Thanks, sorry had a week of travel soon after I posted this. Our infra is on AWS, with dagster orchestrating dbt. We do have a few environments in our profile, so guessing my elementary section is not quite right...
j
Ah I think I see the issue You’re hitting a dbt profile validation error because your Athena profile defines both
database
and
catalog
. In recent dbt-core + dbt-athena (community) versions,
catalog
is an alias of
database
, so setting both is treated as a duplicate of the same underlying field and dbt refuses to run. Keep one (use
database
) and drop the other. The adapter’s own docs note that “`database` and
catalog
can be used interchangeably.”
l
Thanks, let me remove one of those and give it a shot.
j
Sure! Let me know if it doesn't work
And I hope the travel was good 🙂
l
Thanks, that resolved the issue and I am generating reports!
j
Amazing 🤩