<?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: dbutils.notebook.run with multiselect parameter in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15230#M9586</link>
    <description>&lt;P&gt;I have not yet used a multiselect, but for a single value widget you get {"widget":"value"}&lt;/P&gt;&lt;P&gt;And according to the help:&lt;/P&gt;&lt;P&gt;When using dbutils.widgets.get() with a multiselect widget, you get a string of&lt;/P&gt;&lt;P&gt; comma delimited items that are selected by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would think you have to pass a comma separated string, so "ALL, A, B, C", a string object not an array.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Sep 2021 14:06:12 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2021-09-17T14:06:12Z</dc:date>
    <item>
      <title>dbutils.notebook.run with multiselect parameter</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15229#M9585</link>
      <description>&lt;P&gt;I have a notebook which has a parameter defined as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.widgets.multiselect("my_param", "ALL", ["ALL", "A", "B", "C")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and I would like to pass this parameter when calling the notebook via &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.notebook.run()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;However, I tried passing it as an python-array, JSON-array-string, etc. but nothing worked.&lt;/P&gt;&lt;P&gt;any one has any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Sep 2021 19:34:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15229#M9585</guid>
      <dc:creator>gbrueckl</dc:creator>
      <dc:date>2021-09-16T19:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run with multiselect parameter</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15230#M9586</link>
      <description>&lt;P&gt;I have not yet used a multiselect, but for a single value widget you get {"widget":"value"}&lt;/P&gt;&lt;P&gt;And according to the help:&lt;/P&gt;&lt;P&gt;When using dbutils.widgets.get() with a multiselect widget, you get a string of&lt;/P&gt;&lt;P&gt; comma delimited items that are selected by user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would think you have to pass a comma separated string, so "ALL, A, B, C", a string object not an array.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Sep 2021 14:06:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15230#M9586</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2021-09-17T14:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: dbutils.notebook.run with multiselect parameter</title>
      <link>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15231#M9587</link>
      <description>&lt;P&gt;you are right, this actually works fine.&lt;/P&gt;&lt;P&gt;I just realized I had two multiselect parameters in my tests and only changing one of them still resulted in the same error message for the second one &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up writing a function that parses whatever comes in via the widget to an array/list which also supports JSON arrays now&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 09:57:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/dbutils-notebook-run-with-multiselect-parameter/m-p/15231#M9587</guid>
      <dc:creator>gbrueckl</dc:creator>
      <dc:date>2021-09-21T09:57:00Z</dc:date>
    </item>
  </channel>
</rss>

