<?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 Running dbt macro inside Databricks notebook as a part of Workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/running-dbt-macro-inside-databricks-notebook-as-a-part-of/m-p/38821#M26777</link>
    <description>&lt;P&gt;So.. I have Databricks and I'm using dbt-databricks adapter to run dbt. Everything works fine but for some reasons I need to run some stuff inside of notebook. That still worked fine for some time but after upgrading to dbt-databricks 1.5.5 something broke and I can't figure it what exactly. It works when downgrading but I would like to work with newest versions.&lt;/P&gt;&lt;P&gt;Workload always fails when I'm calling out dbf macro (run-operation ..). Weird think is that notebook independently works fine even with macro but inside of workflow it fails and always same error and nothing else:&lt;/P&gt;&lt;P&gt;" OSError: [Errno 22] Invalid argument: 'dbt_packages'&lt;/P&gt;&lt;P&gt;Command exited with return code 2 Execution of shell command failed "&lt;/P&gt;&lt;P&gt;I tried skipping macro and then it works fine but I need to run these macros. Tried to run just one basic macro and it still failed so I'm sure it's the execution of macro that is causing workflow to fail.&lt;/P&gt;&lt;P&gt;I'm expecting this to be some problem with how workflow Is execution notebooks but couldn't find anything that would help solve my issue.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 09:09:04 GMT</pubDate>
    <dc:creator>JakubII</dc:creator>
    <dc:date>2023-08-01T09:09:04Z</dc:date>
    <item>
      <title>Running dbt macro inside Databricks notebook as a part of Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/running-dbt-macro-inside-databricks-notebook-as-a-part-of/m-p/38821#M26777</link>
      <description>&lt;P&gt;So.. I have Databricks and I'm using dbt-databricks adapter to run dbt. Everything works fine but for some reasons I need to run some stuff inside of notebook. That still worked fine for some time but after upgrading to dbt-databricks 1.5.5 something broke and I can't figure it what exactly. It works when downgrading but I would like to work with newest versions.&lt;/P&gt;&lt;P&gt;Workload always fails when I'm calling out dbf macro (run-operation ..). Weird think is that notebook independently works fine even with macro but inside of workflow it fails and always same error and nothing else:&lt;/P&gt;&lt;P&gt;" OSError: [Errno 22] Invalid argument: 'dbt_packages'&lt;/P&gt;&lt;P&gt;Command exited with return code 2 Execution of shell command failed "&lt;/P&gt;&lt;P&gt;I tried skipping macro and then it works fine but I need to run these macros. Tried to run just one basic macro and it still failed so I'm sure it's the execution of macro that is causing workflow to fail.&lt;/P&gt;&lt;P&gt;I'm expecting this to be some problem with how workflow Is execution notebooks but couldn't find anything that would help solve my issue.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 09:09:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/running-dbt-macro-inside-databricks-notebook-as-a-part-of/m-p/38821#M26777</guid>
      <dc:creator>JakubII</dc:creator>
      <dc:date>2023-08-01T09:09:04Z</dc:date>
    </item>
  </channel>
</rss>

