DBT RUN Command not working while invoked using subprocess.run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2025 02:57 AM
Hi,
I am using below code to run DBT Model from notebook.
I am using parameters to pass DBT run command(project directory, profile directory, schema name etc). The issue is, when I am running this code in my local workspace it is working fine but when I push this code to the workspace folder connected to git repository, the code does not works and throws exception "invalid path for profile" or "cannot find profile file".
When I try to read the profile.yml file in a dataframe from workspace folder connected to GIT, I am able to see the file contents. My question is why the DBT RUN command is not able to read the profile.yml file from the specified path.
Can anyone please suggest any workaround or solution to this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2025 01:17 PM
Hi @dk09,
Can you share the path of: dbt_project_directory and also try inputting the folder path manually to debug it, does it still fail?

