<?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: InputWidgetNotDefined exception when running a notebook as a job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/45771#M27981</link>
    <description>&lt;P&gt;I have a number of notebooks that have Widgets and I run them both interactively and in job mode without exceptions. The difference that is these notebooks are in Python, and the one I reported&amp;nbsp;InputWidgetNotDefined exception for is in Scala. So I think there is an inconsistency between Scala and Python runtime here.&lt;/P&gt;&lt;P&gt;The reason I like using Widgets for notebooks that I also run as jobs is that you can set parameters manually during testing or, as you said via job parameters, and you use the same&amp;nbsp;dbutils.widgets.get() API to get the input. It works great in Python commands! But for some reason doesn't work in Scala, that's unfortunate.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Sep 2023 21:44:30 GMT</pubDate>
    <dc:creator>MarcinO</dc:creator>
    <dc:date>2023-09-22T21:44:30Z</dc:date>
    <item>
      <title>InputWidgetNotDefined exception when running a notebook as a job</title>
      <link>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/45600#M27945</link>
      <description>&lt;P&gt;I have a notebook that reads a value of a text input in a Scala command:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;startTimeStr&lt;/SPAN&gt;&lt;SPAN&gt; = dbutils.widgets.get(&lt;/SPAN&gt;&lt;SPAN&gt;"Run Date"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;What doesn't make any sense that this notebook fails with&amp;nbsp;InputWidgetNotDefined error when being scheduled as a job, but works just fine in interactive mode, on the same cluster. Any advice?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Sep 2023 00:12:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/45600#M27945</guid>
      <dc:creator>MarcinO</dc:creator>
      <dc:date>2023-09-22T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: InputWidgetNotDefined exception when running a notebook as a job</title>
      <link>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/45771#M27981</link>
      <description>&lt;P&gt;I have a number of notebooks that have Widgets and I run them both interactively and in job mode without exceptions. The difference that is these notebooks are in Python, and the one I reported&amp;nbsp;InputWidgetNotDefined exception for is in Scala. So I think there is an inconsistency between Scala and Python runtime here.&lt;/P&gt;&lt;P&gt;The reason I like using Widgets for notebooks that I also run as jobs is that you can set parameters manually during testing or, as you said via job parameters, and you use the same&amp;nbsp;dbutils.widgets.get() API to get the input. It works great in Python commands! But for some reason doesn't work in Scala, that's unfortunate.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 21:44:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/45771#M27981</guid>
      <dc:creator>MarcinO</dc:creator>
      <dc:date>2023-09-22T21:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: InputWidgetNotDefined exception when running a notebook as a job</title>
      <link>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/49183#M28492</link>
      <description>&lt;P&gt;Have you used dbutils.widget.text() before dbutils.widget.get() ?&lt;/P&gt;</description>
      <pubDate>Sat, 14 Oct 2023 17:52:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/inputwidgetnotdefined-exception-when-running-a-notebook-as-a-job/m-p/49183#M28492</guid>
      <dc:creator>berserkersap</dc:creator>
      <dc:date>2023-10-14T17:52:59Z</dc:date>
    </item>
  </channel>
</rss>

