I am getting an error (see below) when I execute e...
# community-support
r
I am getting an error (see below) when I execute edr report Verions: EDR - 0.14.0 DBT - 1.7.8 Elementary - 0.14.0 (and 0.14.1) VS Code I have: Ensured that there is an elementary section in my profiles.yml (dbt run-operation elementary.generate_elementary_cli_profile) Executed dbt deps (Up to date!) Executed dbt run -s elementary --full-refresh (no errors) Executed dbt test (no issues) Tried executing outside of VS Code - same error What (pathing issue...) am I missing? Thanks in advance!
Copy code
2024-02-28 17:38:47 — INFO — Running with edr=0.14.0
2024-02-28 17:38:47 — ERROR — Unable to get the latest invocation: Failed to run dbt command.
2024-02-28 17:38:48 — ERROR — Failed to parse Elementary's database and schema.
2024-02-28 17:38:48 — INFO — Running dbt --log-format json run-operation elementary.log_macro_results --args {"macro_name": "elementary_cli.get_test_results", "macro_args": {"days_back": 7, "invocations_per_test": 720, "disable_passed_test_metrics": false}} --project-dir C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\monitor\dbt_project
2024-02-28 17:38:48 — ERROR — Could not generate the report - Error: Failed to run dbt command.
Please reach out to our community for help with this issue.
Traceback (most recent call last):
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\clients\dbt\dbt_runner.py", line 88, in _run_command
    result = subprocess.run(
             ^^^^^^^^^^^^^^^
  File "C:\Users\RRH0220\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
roject-dir', 'C:\\Projects\\MyClient\\Platform_Innovation\\.dbt_venv\\Lib\\site-packages\\elementary\\monitor\\dbt_project']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\monitor\api\report\report.py", line 50, in get_report_data
    tests_api = TestsAPI(
                ^^^^^^^^^
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\monitor\api\tests\tests.py", line 39, in __init__
    self.test_results_db_rows = self._get_test_results_db_rows(
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\monitor\api\tests\tests.py", line 51, in _get_test_results_db_rows
    return self.tests_fetcher.get_all_test_results_db_rows(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\monitor\fetchers\tests\tests.py", line 22, in get_all_test_results_db_rows
    run_operation_response = self.dbt_runner.run_operation(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\clients\dbt\dbt_runner.py", line 160, in run_operation
    success, command_output = self._run_command(
                              ^^^^^^^^^^^^^^^^^^
  File "C:\Projects\MyClient\Platform_Innovation\.dbt_venv\Lib\site-packages\elementary\clients\dbt\dbt_runner.py", line 99, in _run_command
    raise DbtCommandError(err, command_args, logs=logs)
elementary.exceptions.exceptions.DbtCommandError: Failed to run dbt command.
Any ideas here?
i
Hey, sorry for the late response 🙏 Did it work for you before?