<?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: running notebook job from remote github repository fails, but do not fail on python script type in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49486#M6026</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91840"&gt;@NielsMH&lt;/a&gt;&amp;nbsp;if you want to run your jobs based o job name, please use new preview service that databricks released which are DAB format. there you can run your job based on your job name.&lt;/P&gt;&lt;P&gt;remote repo in the sense, are you using github actions or api, looks notebook format is not being detected untill you specify type of format (in u r case py)&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 16:32:26 GMT</pubDate>
    <dc:creator>karthik_p</dc:creator>
    <dc:date>2023-10-18T16:32:26Z</dc:date>
    <item>
      <title>running notebook job from remote github repository fails, but do not fail on python script type</title>
      <link>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49480#M6025</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am trying to run a notebook from a remote repository, but the job fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I setup the job as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job-setup.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/4492i38C32E6C68BED8B4/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="job-setup.png" alt="job-setup.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my project structure is as such:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="folder_structure.png" style="width: 200px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/4495i55580CC76608B34A/image-size/small/is-moderation-mode/true?v=v2&amp;amp;px=200" role="button" title="folder_structure.png" alt="folder_structure.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the output i get is like such:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="job_output.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/4497i15CEF1B9DFAABB6A/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="job_output.png" alt="job_output.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is if i set the job type to "Python Script" i dont encounter this problem. Then the job will carry on as expected with no errors. However, i need the &lt;SPAN&gt;poc_template_job_script.py to be read as a notebook&lt;/SPAN&gt;. So somehow i think the job is not recognizing my project notebook (&lt;SPAN&gt;poc_template_job_script.py). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone has some input to how i can solve this issue? I have not found a similar issue anywhere. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 15:16:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49480#M6025</guid>
      <dc:creator>NielsMH</dc:creator>
      <dc:date>2023-10-18T15:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: running notebook job from remote github repository fails, but do not fail on python script type</title>
      <link>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49486#M6026</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/91840"&gt;@NielsMH&lt;/a&gt;&amp;nbsp;if you want to run your jobs based o job name, please use new preview service that databricks released which are DAB format. there you can run your job based on your job name.&lt;/P&gt;&lt;P&gt;remote repo in the sense, are you using github actions or api, looks notebook format is not being detected untill you specify type of format (in u r case py)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 16:32:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49486#M6026</guid>
      <dc:creator>karthik_p</dc:creator>
      <dc:date>2023-10-18T16:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: running notebook job from remote github repository fails, but do not fail on python script type</title>
      <link>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49534#M6027</link>
      <description>&lt;P&gt;Hi Karthik_p thanks for the reply&lt;/P&gt;&lt;P&gt;If i specify the extension&amp;nbsp;&lt;SPAN&gt;poc_template_job_script.py, I get the same error. In the setup it asks to omit the extension which results in my initial post. And i agree that it should work if i specified the extension if you look at the documentation:&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Supported notebook formats&lt;/H2&gt;&lt;P&gt;Databricks can import and export notebooks in the following formats:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;Source file: A file containing only source code statements with the extension&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.scala&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.py&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.sql&lt;/SPAN&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;.r&lt;/SPAN&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;But somehow it still does not recognize&amp;nbsp;poc_template_job_script.py as a databricks notebook.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also tried to add: "&lt;/SPAN&gt;&lt;SPAN&gt;# Databricks notebook source" in the top of the file as specified in the comments also:&lt;/SPAN&gt;&lt;/P&gt;&lt;H2&gt;Import a file and convert it to a notebook&lt;/H2&gt;&lt;P&gt;You can convert Python, SQL, Scala, and R scripts to single-cell notebooks by adding a comment to the first cell of the file:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;A href="https://docs.databricks.com/en/notebooks/notebook-export-import.html#0-language-python" target="_blank" rel="noopener"&gt;Python&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# Databricks notebook source&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 12:53:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/running-notebook-job-from-remote-github-repository-fails-but-do/m-p/49534#M6027</guid>
      <dc:creator>NielsMH</dc:creator>
      <dc:date>2023-10-19T12:53:52Z</dc:date>
    </item>
  </channel>
</rss>

