<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to run a dbt project through a Databricks Workflows in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/unable-to-run-a-dbt-project-through-a-databricks-workflows/m-p/39416#M26969</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Tried installing an older version (2.1.0) of databricks-sql-connector (instead of 2.7.0) and surprisingly a new error message appeared. Don't know how to fix this now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abhishek7781_0-1691565254184.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3099iEDDAFA8CE77EF54C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Abhishek7781_0-1691565254184.png" alt="Abhishek7781_0-1691565254184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 07:15:13 GMT</pubDate>
    <dc:creator>Abhishek7781</dc:creator>
    <dc:date>2023-08-09T07:15:13Z</dc:date>
    <item>
      <title>Unable to run a dbt project through a Databricks Workflows</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-run-a-dbt-project-through-a-databricks-workflows/m-p/39336#M26924</link>
      <description>&lt;P&gt;I'm trying to run a dbt project which reads data from ADLS and writes back to ADLS using a Databricks Workflow. When I run the same project from my local machine (using python virtual environment from Visual Studio Code), it's running perfectly fine but it's throwing an error while running it from Databricks Workflow.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Versions-&lt;BR /&gt;&lt;/U&gt;&lt;/STRONG&gt;dbt version: 1.6.0&lt;BR /&gt;python version: 3.9.5&lt;BR /&gt;databricks adapter version: 1.6.1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Databricks Workflow Details-&lt;BR /&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;STRONG&gt;Type:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;dbt&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;Source:&lt;/STRONG&gt; GitHub Enterprise&lt;BR /&gt;&lt;STRONG&gt;Commands:&amp;nbsp;&lt;/STRONG&gt;dbt deps,&amp;nbsp; &amp;nbsp;dbt debug,&amp;nbsp; &amp;nbsp;dbt run --threads 16 --select tag:&amp;lt;model_tag&amp;gt;&lt;BR /&gt;&lt;STRONG&gt;Dependent Libraries:&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;dbt-databricks&amp;gt;=1.0.0,&amp;lt;2.0.0,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;databricks-sql-connector==2.7.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;profiles.yml file (in the project folder on Git):&lt;BR /&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abhishek7781_0-1691482504468.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3087iA480BD61B7F07A2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Abhishek7781_0-1691482504468.png" alt="Abhishek7781_0-1691482504468.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;EM&gt;&lt;EM&gt;**using Job Cluster here and not SQL Warehouse/Endpoint&lt;/EM&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;host&lt;/STRONG&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;adb-****************.**.azuredatabricks.net&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;http_path&lt;/STRONG&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;/sql/protocolv1/o/****************/****-******-********&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;token&lt;/STRONG&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;dapi********************************************&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt;Error Message:&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;While running the Databricks workflow, I'm getting the below error:&lt;BR /&gt;&lt;/SPAN&gt;&lt;FONT face="simsun,hei" size="2"&gt;&lt;SPAN&gt;15:59:28 Configuration:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 profiles.yml file [OK found and valid]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 dbt_project.yml file [OK found and valid]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 Required dependencies:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 - git [OK found]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 Connection:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 host: [REDACTED]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 http_path: [REDACTED]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 schema: default&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:28 Registered adapter: databricks=1.6.1&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:29 databricks-sql-connector adapter: Error during request to server: {"method": "OpenSession", "session-id": null, "query-id": null, "http-code": 403, "error-message": "", "original-exception": "", "no-retry-reason": "non-retryable error", "bounded-retry-delay": null, "attempt": "1/30", "elapsed-seconds": "0.7869570255279541/900.0"}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;15:59:29 Connection test: [ERROR]&lt;/SPAN&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;Detailed Error after running with verbose logs:&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Acquiring new databricks connection 'master'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Acquiring new databricks connection 'list_schemas'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Acquiring new databricks connection 'list_schemas'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Acquiring new databricks connection 'list_schemas'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Using databricks connection "list_schemas"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Using databricks connection "list_schemas"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Using databricks connection "list_schemas"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Acquiring new databricks connection 'list_schemas'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 On list_schemas: /* {"app": "dbt", "dbt_version": "1.6.0", "dbt_databricks_version": "1.6.1", "databricks_sql_connector_version": "2.7.0", "profile_name": "analytics_engineering_pipeline_synapse_app_sp", "target_name": "databricks_job", "connection_name": "list_schemas"} */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;show databases&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Opening a new connection, currently in state init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Using databricks connection "list_schemas"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 On list_schemas: /* {"app": "dbt", "dbt_version": "1.6.0", "dbt_databricks_version": "1.6.1", "databricks_sql_connector_version": "2.7.0", "profile_name": "analytics_engineering_pipeline_synapse_app_sp", "target_name": "databricks_job", "connection_name": "list_schemas"} */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;show databases&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:58 Opening a new connection, currently in state init&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:24:59 databricks-sql-connector adapter: Error during request to server: {"method": "OpenSession", "session-id": null, "query-id": null, "http-code": 403, "error-message": "", "original-exception": "", "no-retry-reason": "non-retryable error", "bounded-retry-delay": null, "attempt": "1/30", "elapsed-seconds": "1.3058898448944092/900.0"}&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: &amp;lt;class 'databricks.sql.exc.RequestError'&amp;gt;: Error during request to server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 databricks-sql-connector adapter: Error during request to server: {"method": "OpenSession", "session-id": null, "query-id": null, "http-code": 403, "error-message": "", "original-exception": "", "no-retry-reason": "non-retryable error", "bounded-retry-delay": null, "attempt": "1/30", "elapsed-seconds": "2.635369300842285/900.0"}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Database Error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;Error during request to server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Error while running:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;macro list_schemas&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: session-id: None&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Database Error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;Error during request to server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Error while running:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;macro list_schemas&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Runtime Error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;Database Error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;Error during request to server&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;07:25:00 Databricks adapter: Error while running:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="simsun,hei" size="2"&gt;/* {"app": "dbt", "dbt_version": "1.6.0", "dbt_databricks_version": "1.6.1", "databricks_sql_connector_version": "2.7.0", "profile_name": "analytics_engineering_pipeline_synapse_app_sp", "target_name": "databricks_job", "connection_name": "list_schemas"} */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="simsun,hei" size="2"&gt;show databases&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 08 Aug 2023 08:31:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-run-a-dbt-project-through-a-databricks-workflows/m-p/39336#M26924</guid>
      <dc:creator>Abhishek7781</dc:creator>
      <dc:date>2023-08-08T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to run a dbt project through a Databricks Workflows</title>
      <link>https://community.databricks.com/t5/data-engineering/unable-to-run-a-dbt-project-through-a-databricks-workflows/m-p/39416#M26969</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Tried installing an older version (2.1.0) of databricks-sql-connector (instead of 2.7.0) and surprisingly a new error message appeared. Don't know how to fix this now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Abhishek7781_0-1691565254184.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/3099iEDDAFA8CE77EF54C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Abhishek7781_0-1691565254184.png" alt="Abhishek7781_0-1691565254184.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 07:15:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/unable-to-run-a-dbt-project-through-a-databricks-workflows/m-p/39416#M26969</guid>
      <dc:creator>Abhishek7781</dc:creator>
      <dc:date>2023-08-09T07:15:13Z</dc:date>
    </item>
  </channel>
</rss>

