<?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 Issue with Root Folder Configuration in Databricks Asset Bundles for DLT Pipelines in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/issue-with-root-folder-configuration-in-databricks-asset-bundles/m-p/123002#M46920</link>
    <description>&lt;P&gt;I'm currently working with Databricks Asset Bundles to deploy my DLT pipelines, but I’ve encountered an issue I can't resolve.&lt;/P&gt;&lt;P&gt;The problem is that I’m unable to configure the root folder within the Asset Bundle in a way that lets me define a custom path for my source code. When I run the deployment, the root folder is incorrectly set to "--", as shown in the image bellow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Davila_1-1750959884979.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17796i0838A3F234449756/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Davila_1-1750959884979.png" alt="Davila_1-1750959884979.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here’s how my bundle resource is currently defined:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  pipelines:
    my_dlt_pipeline:
      name: my_dlt_pipeline
      libraries:
        - file:
            path: ${workspace.file_path}/src/../../../my_file_1.py
        - file:
            path: ${workspace.file_path}/src/../../../my_file_2.py
      configuration:
        bundle.sourcePath: ${workspace.file_path}/src
      serverless: true
      photon: true
      catalog: ${var.my_catalog} 
      target: my_schema
      channel: CURRENT&lt;/LI-CODE&gt;&lt;P&gt;When I deploy, the files my_file_1.py and my_file_2.py are correctly listed in the UI, but the &lt;STRONG&gt;root folder&lt;/STRONG&gt; still appears as "--".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Davila_2-1750960256363.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17797i5AA21FCB676ECFF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Davila_2-1750960256363.png" alt="Davila_2-1750960256363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone else faced this issue? How can I properly configure the root folder in the Asset Bundle?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2025 17:54:59 GMT</pubDate>
    <dc:creator>Davila</dc:creator>
    <dc:date>2025-06-26T17:54:59Z</dc:date>
    <item>
      <title>Issue with Root Folder Configuration in Databricks Asset Bundles for DLT Pipelines</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-root-folder-configuration-in-databricks-asset-bundles/m-p/123002#M46920</link>
      <description>&lt;P&gt;I'm currently working with Databricks Asset Bundles to deploy my DLT pipelines, but I’ve encountered an issue I can't resolve.&lt;/P&gt;&lt;P&gt;The problem is that I’m unable to configure the root folder within the Asset Bundle in a way that lets me define a custom path for my source code. When I run the deployment, the root folder is incorrectly set to "--", as shown in the image bellow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Davila_1-1750959884979.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17796i0838A3F234449756/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Davila_1-1750959884979.png" alt="Davila_1-1750959884979.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here’s how my bundle resource is currently defined:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resources:
  pipelines:
    my_dlt_pipeline:
      name: my_dlt_pipeline
      libraries:
        - file:
            path: ${workspace.file_path}/src/../../../my_file_1.py
        - file:
            path: ${workspace.file_path}/src/../../../my_file_2.py
      configuration:
        bundle.sourcePath: ${workspace.file_path}/src
      serverless: true
      photon: true
      catalog: ${var.my_catalog} 
      target: my_schema
      channel: CURRENT&lt;/LI-CODE&gt;&lt;P&gt;When I deploy, the files my_file_1.py and my_file_2.py are correctly listed in the UI, but the &lt;STRONG&gt;root folder&lt;/STRONG&gt; still appears as "--".&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Davila_2-1750960256363.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/17797i5AA21FCB676ECFF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Davila_2-1750960256363.png" alt="Davila_2-1750960256363.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Has anyone else faced this issue? How can I properly configure the root folder in the Asset Bundle?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 17:54:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-root-folder-configuration-in-databricks-asset-bundles/m-p/123002#M46920</guid>
      <dc:creator>Davila</dc:creator>
      <dc:date>2025-06-26T17:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Root Folder Configuration in Databricks Asset Bundles for DLT Pipelines</title>
      <link>https://community.databricks.com/t5/data-engineering/issue-with-root-folder-configuration-in-databricks-asset-bundles/m-p/135539#M50377</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/140782"&gt;@Davila&lt;/a&gt;&amp;nbsp;, I did some digging and have come with some things you can think about as you work through your issue.&amp;nbsp;&lt;SPAN&gt;Here’s a clear way to think about what you’re seeing and how to proceed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;What’s going on&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;That “Root folder” field in the DLT UI is informational only&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; and is populated when the pipeline’s &lt;I&gt;entry&lt;/I&gt; is a &lt;/SPAN&gt;&lt;STRONG&gt;notebook path&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; (i.e., &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;libraries: - notebook: { path: ... }&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;).&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;When your pipeline libraries are &lt;SPAN class="s1"&gt;&lt;STRONG&gt;Python files&lt;/STRONG&gt;&lt;/SPAN&gt; (&lt;SPAN class="s2"&gt;libraries: - file: { path: ... }&lt;/SPAN&gt;), &lt;SPAN class="s1"&gt;&lt;STRONG&gt;DLT does not set a root folder&lt;/STRONG&gt;&lt;/SPAN&gt; in the UI. In that case the UI shows &lt;SPAN class="s2"&gt;--&lt;/SPAN&gt;. This is expected and &lt;SPAN class="s1"&gt;&lt;STRONG&gt;has no functional impact&lt;/STRONG&gt;&lt;/SPAN&gt; on the pipeline.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;The key you’re setting—&lt;SPAN class="s1"&gt;configuration: bundle.sourcePath&lt;/SPAN&gt;—is &lt;SPAN class="s2"&gt;&lt;STRONG&gt;not a DLT/Workflows-recognized setting&lt;/STRONG&gt;&lt;/SPAN&gt; for controlling that UI field. (The &lt;SPAN class="s1"&gt;configuration&lt;/SPAN&gt; block passes Spark/Delta configs to the pipeline, but it doesn’t control the “Root folder” display.)&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;STRONG&gt;What you can do (practical options)&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;Option A — Keep using .py files and ignore --&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p1"&gt;If the pipeline runs and your files are correctly listed (as you showed), you can safely ignore the “Root folder: –”. It’s cosmetic in this mode.&lt;/P&gt;
&lt;P class="p4"&gt;&lt;STRONG&gt;Option B — Use a notebook entrypoint to get a “root” in UI&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p1"&gt;If you specifically want the UI to show a root folder, make a small entry notebook and import your Python modules from &lt;SPAN class="s2"&gt;src/&lt;/SPAN&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;resources:
  pipelines:
    my_dlt_pipeline:
      name: my_dlt_pipeline
      libraries:
        - notebook:
            path: ${workspace.file_path}/src/entrypoint_notebook
      # You can still keep your .py modules in src/ and import them from the notebook
      catalog: ${var.my_catalog}
      target: my_schema
      channel: CURRENT
      serverless: true
      photon: true&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;Then in &lt;SPAN class="s1"&gt;entrypoint_notebook&lt;/SPAN&gt; (Python), do your &lt;SPAN class="s1"&gt;import&lt;/SPAN&gt;/&lt;SPAN class="s1"&gt;dlt&lt;/SPAN&gt; definitions and reference code in &lt;SPAN class="s1"&gt;src/&lt;/SPAN&gt;.&lt;/P&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;&lt;STRONG&gt;Option C — Package code as a wheel (cleaner code layout)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Using Bundles, define a wheel artifact and reference it in your pipeline. The UI “root folder” will still be &lt;SPAN class="s1"&gt;--&lt;/SPAN&gt; (since the entry isn’t a notebook path), but your code organization and dependency management are cleaner.&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Small cleanups to your current bundle&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P class="p1"&gt;You don’t need the &lt;SPAN class="s1"&gt;../../../&lt;/SPAN&gt; gymnastics if your code lives under the bundle’s project tree. Using &lt;SPAN class="s1"&gt;${workspace.file_path}&lt;/SPAN&gt; already points at the uploaded bundle files for the current target:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;resources:
  pipelines:
    my_dlt_pipeline:
      name: my_dlt_pipeline
      libraries:
        - file:
            path: ${workspace.file_path}/src/my_file_1.py
        - file:
            path: ${workspace.file_path}/src/my_file_2.py
      # Remove bundle.sourcePath – it won’t affect the UI
      catalog: ${var.my_catalog}
      target: my_schema
      channel: CURRENT
      serverless: true
      photon: true   # (Note: Serverless clusters already run on Photon; leaving this is fine.)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;TL;DR&lt;/STRONG&gt;&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Seeing &lt;/SPAN&gt;&lt;STRONG&gt;“Root folder: –”&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; when using &lt;/SPAN&gt;&lt;STRONG&gt;libraries.file&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; is &lt;/SPAN&gt;&lt;STRONG&gt;normal&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;does not affect&lt;/STRONG&gt;&lt;SPAN class="s1"&gt; your pipeline.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;If you want a populated root folder in the UI, switch your &lt;SPAN class="s1"&gt;&lt;STRONG&gt;entry&lt;/STRONG&gt;&lt;/SPAN&gt; to a &lt;SPAN class="s1"&gt;&lt;STRONG&gt;notebook&lt;/STRONG&gt;&lt;/SPAN&gt; and import your modules from there.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P class="p1"&gt;Otherwise, simplify your paths and carry on—your current deployment approach is valid.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p3"&gt;Hope this helps, Louis.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 15:31:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/issue-with-root-folder-configuration-in-databricks-asset-bundles/m-p/135539#M50377</guid>
      <dc:creator>Louis_Frolio</dc:creator>
      <dc:date>2025-10-21T15:31:33Z</dc:date>
    </item>
  </channel>
</rss>

