<?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 %run command gives error on free edition in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127656#M3821</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing out running one Notebook from another using the %run magic command in the Databricks Free Edition. Just really simple test stuff but get the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Failed to parse %run command: string matching regex '\$[\w_]+' expected but 'p' found. If notebook path contains spaces, wrap with double quotes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The path doesn't contain spaces and wrapping in double quotes doesn't help, either.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Aug 2025 10:28:00 GMT</pubDate>
    <dc:creator>JonnyData</dc:creator>
    <dc:date>2025-08-07T10:28:00Z</dc:date>
    <item>
      <title>%run command gives error on free edition</title>
      <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127656#M3821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm testing out running one Notebook from another using the %run magic command in the Databricks Free Edition. Just really simple test stuff but get the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Failed to parse %run command: string matching regex '\$[\w_]+' expected but 'p' found. If notebook path contains spaces, wrap with double quotes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The path doesn't contain spaces and wrapping in double quotes doesn't help, either.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 10:28:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127656#M3821</guid>
      <dc:creator>JonnyData</dc:creator>
      <dc:date>2025-08-07T10:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: %run command gives error on free edition</title>
      <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127662#M3822</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178335"&gt;@JonnyData&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;This parsing error typically appears when the notebook path isn't in the expected format. Could you share the exact %run command you're using?&lt;BR /&gt;Also, please ensure the path is a workspace path, either absolute (starting with /) or relative (like ./NotebookName, and both notebooks must be in the same folder).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 11:32:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127662#M3822</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-08-07T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: %run command gives error on free edition</title>
      <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127666#M3823</link>
      <description>&lt;P&gt;Hi Advika - thanks for this.&lt;/P&gt;&lt;P&gt;In my Workspace I've first created a folder called HolusTest&lt;/P&gt;&lt;P&gt;In there I have 2 Notebooks HolusTest1 which containes the lines:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%&lt;/SPAN&gt;&lt;SPAN&gt;run .&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;HolusTestSetup&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;(book_publisher)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;and HolusTestSetup, which contains one line&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;book_publisher &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"OReilly"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;The language 'default' for both is python and the code's from Databricks Certified Data Engineer Associate Study Guide which I'm just working through to give myself a better all round grounding in Databricks.&lt;/P&gt;&lt;P&gt;Thanks in advance for any help&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 11:51:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127666#M3823</guid>
      <dc:creator>JonnyData</dc:creator>
      <dc:date>2025-08-07T11:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: %run command gives error on free edition</title>
      <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127670#M3825</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/178335"&gt;@JonnyData&lt;/a&gt;, it's considered best practice to put %run in a cell by itself. If you include other code (like print(book_publisher)) in the same cell, it may execute before the %run command has finished loading everything.&lt;/P&gt;
&lt;P&gt;You can try either of the following approaches:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Split the code across two cells: Use the&amp;nbsp;&lt;EM&gt;%run &lt;/EM&gt;command&amp;nbsp;in one cell and place the &lt;EM&gt;print&lt;/EM&gt;&amp;nbsp;statement in another.&lt;/LI&gt;
&lt;LI&gt;Run selected text: Run only the &lt;EM&gt;%run&lt;/EM&gt; command by selecting it, then execute the print statement.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/notebooks/notebook-workflows#use-run-to-import-a-notebook" target="_self"&gt;https://docs.databricks.com/aws/en/notebooks/notebook-workflows#use-run-to-import-a-notebook&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 13:42:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127670#M3825</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-08-07T13:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: %run command gives error on free edition</title>
      <link>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127675#M3828</link>
      <description>&lt;P&gt;Hi Advika,&lt;/P&gt;&lt;P&gt;Thanks for that - it worked a treat!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 15:12:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/run-command-gives-error-on-free-edition/m-p/127675#M3828</guid>
      <dc:creator>JonnyData</dc:creator>
      <dc:date>2025-08-07T15:12:19Z</dc:date>
    </item>
  </channel>
</rss>

