<?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: Asset Bundles: Adding project_directory in  DBT task breaks previous python task in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69122#M33819</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98051"&gt;@Mathias_Peters&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is related to project directory only, Can you please try to create same job using UI and extract the YAML and check if there is any changes requires in code.&lt;/P&gt;&lt;P&gt;Also can you confirm if you are running the code from Workspace or GIT&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 02:45:50 GMT</pubDate>
    <dc:creator>Ajay-Pandey</dc:creator>
    <dc:date>2024-05-16T02:45:50Z</dc:date>
    <item>
      <title>Asset Bundles: Adding project_directory in  DBT task breaks previous python task</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69108#M33816</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a job consisting of three tasks:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      tasks:
        - task_key: Kinesis_to_S3_new
          spark_python_task:
            python_file: ../src/kinesis.py
            parameters: ["${var.stream_region}", "${var.s3_base_path}"]
          job_cluster_key: general_cluster
        # Run delta live view
        - task_key: delta_live_view_file
          pipeline_task:
            pipeline_id: ${resources.pipelines.dlt_file_pipeline.id}
          depends_on:
            - task_key: Kinesis_to_S3_new
        # Run dbt
        - task_key: dbt
          depends_on:
            - task_key: delta_live_view_file
          dbt_task:
            project_directory: ./dbt
            commands:&lt;/LI-CODE&gt;&lt;P&gt;Without the last task (the dbt task), the bundle can be validated, deployed and executed fine. After adding the dbt task, I receive an error when deploying the bundle:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: cannot create job: Invalid python file reference: ../src/kinesis.py&lt;/P&gt;&lt;P&gt;Does the project_directory element cause this? Did I use it incorrectly and if so, how is it done correctly?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 20:39:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69108#M33816</guid>
      <dc:creator>Mathias_Peters</dc:creator>
      <dc:date>2024-05-15T20:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles: Adding project_directory in  DBT task breaks previous python task</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69122#M33819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/98051"&gt;@Mathias_Peters&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is related to project directory only, Can you please try to create same job using UI and extract the YAML and check if there is any changes requires in code.&lt;/P&gt;&lt;P&gt;Also can you confirm if you are running the code from Workspace or GIT&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 02:45:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69122#M33819</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2024-05-16T02:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Asset Bundles: Adding project_directory in  DBT task breaks previous python task</title>
      <link>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69130#M33821</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/71565"&gt;@Ajay-Pandey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;thank you for the hints. I will try to recreate the job via UI. I ran the tasks in a Github workflow. The file locations are mixed: the first two tasks (python and dlt) are located in the databricks/src folder. The dbt files come from git.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 07:33:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/asset-bundles-adding-project-directory-in-dbt-task-breaks/m-p/69130#M33821</guid>
      <dc:creator>Mathias_Peters</dc:creator>
      <dc:date>2024-05-16T07:33:03Z</dc:date>
    </item>
  </channel>
</rss>

