<?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: %run and Repos path error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/run-and-repos-path-error/m-p/92148#M38371</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123416"&gt;@indianaDE&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How are you doing today?&lt;/P&gt;&lt;P&gt;As per my understanding,&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Consider &lt;STRONG&gt;checking the relative paths&lt;/STRONG&gt; you’re using in the &lt;STRONG&gt;%run&lt;/STRONG&gt; commands, as the recent update might have changed how Databricks resolves paths for notebooks under the new &lt;STRONG&gt;Workspace/Repos&lt;/STRONG&gt;&amp;nbsp;structure. Instead of relying on relative paths (./), try using &lt;STRONG&gt;absolute paths&lt;/STRONG&gt; to ensure the correct notebooks are referenced. You could also explore using &lt;STRONG&gt;dbutils.notebook.run()&lt;/STRONG&gt; for more flexibility in specifying paths. If the issue persists, review whether the &lt;STRONG&gt;Repo folder structure update&lt;/STRONG&gt; could be interfering with path resolution, and verify that each path correctly aligns with the new folder hierarchy.&lt;/P&gt;&lt;P&gt;Give a try and let me know how it goes.&lt;/P&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brahma&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 28 Sep 2024 03:46:50 GMT</pubDate>
    <dc:creator>Brahmareddy</dc:creator>
    <dc:date>2024-09-28T03:46:50Z</dc:date>
    <item>
      <title>%run and Repos path error</title>
      <link>https://community.databricks.com/t5/data-engineering/run-and-repos-path-error/m-p/92101#M38357</link>
      <description>&lt;P&gt;We have one notebook(N1) which uses the %run command to call a second notebook(N2) which also calls a third notebook(N3) using %run. When running the %run cell within N2, N3 is successfully called and run. When running the %run cell within N1 we&amp;nbsp; get the error below. These %run commands are using the relative paths ./ to call the subnotebooks (N2 and N3), so that the code is portable between branches:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notebook not found: Workspace/Repos/user_folder/&lt;STRONG&gt;&amp;lt;DevOps Repository Name&amp;gt;&lt;/STRONG&gt;/folder/NB3....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The %run is replacing the user defined name of the Repo, with the actual name of the DevOps repository. This is not the path to N3 which should have the user defined folder name within the path. All other methods to return the absolute path of the NBs (ls, dbutils, os etc. show the correct path).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Our environment recently received the update which moved the Repo folder under the Workspace folder, is there any chance there was an issue casued there?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 18:11:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-and-repos-path-error/m-p/92101#M38357</guid>
      <dc:creator>indianaDE</dc:creator>
      <dc:date>2024-09-27T18:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: %run and Repos path error</title>
      <link>https://community.databricks.com/t5/data-engineering/run-and-repos-path-error/m-p/92148#M38371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/123416"&gt;@indianaDE&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;How are you doing today?&lt;/P&gt;&lt;P&gt;As per my understanding,&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Consider &lt;STRONG&gt;checking the relative paths&lt;/STRONG&gt; you’re using in the &lt;STRONG&gt;%run&lt;/STRONG&gt; commands, as the recent update might have changed how Databricks resolves paths for notebooks under the new &lt;STRONG&gt;Workspace/Repos&lt;/STRONG&gt;&amp;nbsp;structure. Instead of relying on relative paths (./), try using &lt;STRONG&gt;absolute paths&lt;/STRONG&gt; to ensure the correct notebooks are referenced. You could also explore using &lt;STRONG&gt;dbutils.notebook.run()&lt;/STRONG&gt; for more flexibility in specifying paths. If the issue persists, review whether the &lt;STRONG&gt;Repo folder structure update&lt;/STRONG&gt; could be interfering with path resolution, and verify that each path correctly aligns with the new folder hierarchy.&lt;/P&gt;&lt;P&gt;Give a try and let me know how it goes.&lt;/P&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Brahma&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 28 Sep 2024 03:46:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/run-and-repos-path-error/m-p/92148#M38371</guid>
      <dc:creator>Brahmareddy</dc:creator>
      <dc:date>2024-09-28T03:46:50Z</dc:date>
    </item>
  </channel>
</rss>

