<?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: Databricks App with DAB in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117277#M45461</link>
    <description>&lt;P&gt;It seems to be issue with relative path&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;source_code_path: ../src&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This does not match the actual path where the source code is being deployed in the Databricks workspace (&lt;CODE&gt;/Workspace/Users/my_user@domain.com/my_app/files/src&lt;/CODE&gt;). This mismatch could lead to the app being unable to locate the files in the expected path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;By default, deploying a Databricks Asset Bundle (DAB) might append additional directory structures like &lt;CODE&gt;files/&lt;/CODE&gt; depending on the bundle structure.&lt;/P&gt;
&lt;P&gt;To fix this&amp;nbsp;&lt;STRONG&gt;Review &lt;CODE&gt;databricks.yml&lt;/CODE&gt; Configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Confirm that the &lt;CODE&gt;root_path&lt;/CODE&gt; in your &lt;CODE&gt;databricks.yml&lt;/CODE&gt; file is consistent with how you want the app deployed. For instance, it could be necessary to append &lt;CODE&gt;/files&lt;/CODE&gt; to the &lt;CODE&gt;root_path&lt;/CODE&gt; if the &lt;CODE&gt;src/&lt;/CODE&gt; folder is being nested under &lt;CODE&gt;files/&lt;/CODE&gt; during deployment.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;After making the above changes, redeploy the bundle using the following command:&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-bash _1t7bu9hb hljs language-bash gb5fhw3"&gt;databricks bundle deploy -t dev&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 May 2025 03:52:14 GMT</pubDate>
    <dc:creator>NandiniN</dc:creator>
    <dc:date>2025-05-01T03:52:14Z</dc:date>
    <item>
      <title>Databricks App with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/116258#M45280</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to deploy a DBX APP via DAB, however &lt;FONT color="#993300"&gt;source_code_path&lt;/FONT&gt; seems not to be parsed correctly to the app configuration.&lt;/P&gt;&lt;P&gt;- dbx_dash/&lt;BR /&gt;-- resources/&lt;BR /&gt;---- app.yml&lt;BR /&gt;-- src/&lt;BR /&gt;---- app.yaml&lt;BR /&gt;---- app.py&lt;BR /&gt;-- databricks.yml&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;resources/app.yml:&lt;/P&gt;&lt;P&gt;resources:&lt;BR /&gt;apps: my_app:&lt;BR /&gt;name: "my_app"&lt;BR /&gt;description: "My First APP"&lt;BR /&gt;# The location of the source code for the app&lt;BR /&gt;source_code_path: ../src&lt;BR /&gt;&lt;BR /&gt;targets:&lt;BR /&gt;dev:&lt;BR /&gt;workspace:&lt;BR /&gt;root_path: /Workspace/Users/my_user@domain.com/my_app&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;databricks.yml:&lt;/P&gt;&lt;P&gt;bundle:&lt;BR /&gt;name: apps&lt;BR /&gt;include:&lt;BR /&gt;- resources/*.yml&lt;/P&gt;&lt;P&gt;targets:&lt;BR /&gt;dev:&lt;BR /&gt;mode: development&lt;BR /&gt;default: true&lt;BR /&gt;workspace:&lt;BR /&gt;host: &lt;A href="https://my_host.com" target="_blank"&gt;https://my_host.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The src folder, when deployed, goes to a folder called files/ in my workspace. However, the app has /Workspace/Users/my_user@domain.com/my_app as the source_path_code, which differs from the correct src path which is /Workspace/Users/my_user@domain.com/my_app/files/src.&lt;/P&gt;&lt;P&gt;Is there anything that I am missing here?&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Adriana Cavalcanti&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 01:06:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/116258#M45280</guid>
      <dc:creator>drii_cavalcanti</dc:creator>
      <dc:date>2025-04-23T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks App with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117277#M45461</link>
      <description>&lt;P&gt;It seems to be issue with relative path&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;source_code_path: ../src&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This does not match the actual path where the source code is being deployed in the Databricks workspace (&lt;CODE&gt;/Workspace/Users/my_user@domain.com/my_app/files/src&lt;/CODE&gt;). This mismatch could lead to the app being unable to locate the files in the expected path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;By default, deploying a Databricks Asset Bundle (DAB) might append additional directory structures like &lt;CODE&gt;files/&lt;/CODE&gt; depending on the bundle structure.&lt;/P&gt;
&lt;P&gt;To fix this&amp;nbsp;&lt;STRONG&gt;Review &lt;CODE&gt;databricks.yml&lt;/CODE&gt; Configuration:&lt;/STRONG&gt;&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;Confirm that the &lt;CODE&gt;root_path&lt;/CODE&gt; in your &lt;CODE&gt;databricks.yml&lt;/CODE&gt; file is consistent with how you want the app deployed. For instance, it could be necessary to append &lt;CODE&gt;/files&lt;/CODE&gt; to the &lt;CODE&gt;root_path&lt;/CODE&gt; if the &lt;CODE&gt;src/&lt;/CODE&gt; folder is being nested under &lt;CODE&gt;files/&lt;/CODE&gt; during deployment.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;After making the above changes, redeploy the bundle using the following command:&lt;/P&gt;
&lt;DIV class="gb5fhw2"&gt;
&lt;PRE&gt;&lt;CODE class="markdown-code-bash _1t7bu9hb hljs language-bash gb5fhw3"&gt;databricks bundle deploy -t dev&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 May 2025 03:52:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117277#M45461</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-05-01T03:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks App with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117290#M45466</link>
      <description>&lt;P&gt;Hi NandiniN,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;The more folders I add to root_path (&lt;SPAN&gt;my_user@domain.com/my_app/files/src&lt;/SPAN&gt;), the deeper the hierarchy becomes to reach the app (&lt;SPAN&gt;/Workspace/Users/my_user@domain.com/my_app/files/src/files/src&lt;/SPAN&gt;), and source path continues to be&amp;nbsp;&lt;SPAN&gt;/Workspace/Users/my_user@domain.com/my_app&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;Is there anything else that I can look into?&lt;BR /&gt;&lt;BR /&gt;Appreciate your assistance,&lt;BR /&gt;Adriana Cavalcanti&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 04:51:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117290#M45466</guid>
      <dc:creator>drii_cavalcanti</dc:creator>
      <dc:date>2025-05-01T04:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks App with DAB</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117301#M45473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Adriana,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Have you adjusted the &lt;CODE&gt;root_path&lt;/CODE&gt; in your &lt;CODE&gt;databricks.yml&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kindly add /Workspace and entire path to the root_path&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 06:40:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-app-with-dab/m-p/117301#M45473</guid>
      <dc:creator>NandiniN</dc:creator>
      <dc:date>2025-05-01T06:40:04Z</dc:date>
    </item>
  </channel>
</rss>

