<?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: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected extra argument in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7784#M3558</link>
    <description>&lt;P&gt;Also tried with version set to 2.1, still not working: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params '{"key", "value"}'&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params "{"key", "value"}"&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params "{\"key\", \"value\"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key, value})&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key\, \value\})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the same json string works with Databricks API calls, so I will use the API call directly. &lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 18:08:00 GMT</pubDate>
    <dc:creator>Jamie_209389</dc:creator>
    <dc:date>2023-03-14T18:08:00Z</dc:date>
    <item>
      <title>In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected extra argument</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7781#M3555</link>
      <description>&lt;P&gt;I am trying to call run-now with notebook_params in Azure Databricks CLI, following &lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/jobs-cli" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/jobs-cli" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/jobs-cli&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;escapse the quotes as stated in the documentation&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/#json-string-parameters" alt="https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/#json-string-parameters" target="_blank"&gt;https://learn.microsoft.com/en-us/azure/databricks/dev-tools/cli/#json-string-parameters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got the failure messages Error: Got unexpected extra argument when calling: &lt;/P&gt;&lt;P&gt;databricks jobs run-now --job-id 1 --notebook-params "{\"key\":\"value\"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried: &lt;/P&gt;&lt;P&gt;$runJobBody = [PSCustomObject]@{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;key="vaule "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;placeholder="placeHolder"&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;$runJobBody = $runJobBody | ConvertTo-Json -Compress&lt;/P&gt;&lt;P&gt;$runJobBody | out-file -encoding ASCII run-job.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;databricks jobs run-now --job-id 1 --notebook-params run-job.json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it gave the same error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do anyone know how I should pass the parameters to databricks jobs run-now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The version of databricks CLI got used is databricks-cli-0.17.x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 22:24:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7781#M3555</guid>
      <dc:creator>Jamie_209389</dc:creator>
      <dc:date>2023-03-13T22:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected extra argument</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7782#M3556</link>
      <description>&lt;P&gt;@Jamie Iong​&amp;nbsp;: It looks like the issue you're encountering is due to how the quotes are being escaped. In the command you provided, the backslashes before the quotes are getting interpreted as part of the argument rather than as an escape character. Try using single quotes around the JSON string and double quotes inside the JSON string to encapsulate the key-value pairs. For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;databricks jobs run-now --job-id 1 --notebook-params '{"key":"value"}'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:44:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7782#M3556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-14T08:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected extra argument</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7783#M3557</link>
      <description>&lt;P&gt;I tried with single quote wrapping with double quote inside: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;databricks jobs run-now --job-id 1 --notebook-params '{"key", "value"}'&amp;nbsp;&lt;/P&gt;&lt;P&gt;databricks jobs run-now --job-id 1 --notebook-params "{"key", "value"}"&lt;/P&gt;&lt;P&gt;databricks jobs run-now --job-id 1--notebook-params "{\"key\", \"value\"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I got these corresponding errors: &lt;/P&gt;&lt;P&gt;Error: JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key, value})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key\, \value\})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 17:06:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7783#M3557</guid>
      <dc:creator>Jamie_209389</dc:creator>
      <dc:date>2023-03-14T17:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected extra argument</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7784#M3558</link>
      <description>&lt;P&gt;Also tried with version set to 2.1, still not working: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params '{"key", "value"}'&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params "{"key", "value"}"&lt;/P&gt;&lt;P&gt;databricks jobs run-now --version 2.1 --job-id 1 --notebook-params "{\"key\", \"value\"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key, value})&lt;/P&gt;&lt;P&gt;Error: Got unexpected extra argument (key\, \value\})&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the same json string works with Databricks API calls, so I will use the API call directly. &lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:08:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/7784#M3558</guid>
      <dc:creator>Jamie_209389</dc:creator>
      <dc:date>2023-03-14T18:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected ext</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/42546#M27402</link>
      <description>&lt;P&gt;Facing the same issue.&lt;/P&gt;&lt;P&gt;Could someone provide an update on the CLI side using run-now command with JSON notebook parameters? Is this a bug within the CLI?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 16:15:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/42546#M27402</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-08-28T16:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected ext</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/42825#M27427</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Update / Solved:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Using CLI on Linux/MacOS:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Send in the sample json with job_id in it.&amp;nbsp;&lt;BR /&gt;databricks jobs run-now --json '{&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;"job_id":&amp;lt;job-ID&amp;gt;,&lt;BR /&gt;&amp;nbsp; "notebook_params": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;key&amp;gt;:&amp;lt;value&amp;gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;key&amp;gt;:&amp;lt;value&amp;gt;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}'&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Using CLI on Windows:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;Send in the sample json with job_id in it and sringify the json as below&lt;BR /&gt;databricks jobs run-now --json '{&amp;nbsp;\"job_id\":&amp;lt;job-ID&amp;gt;, \"notebook_params\": { &amp;lt;key&amp;gt;:&amp;lt;value&amp;gt;, &amp;lt;key&amp;gt;:&amp;lt;value&amp;gt; } }'&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 21:10:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/42825#M27427</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-08-29T21:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected ext</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/65476#M32820</link>
      <description>&lt;P&gt;I have the latest Databricks CLI setup and configured in my Ubuntu VM. When I tried to run a job using the json template I generated using databricks jobs get 'xxxjob_idxxx' &amp;gt; orig.json it throws an unknown error.&lt;/P&gt;&lt;P&gt;Databricks CLI v0.216.0&lt;/P&gt;&lt;P&gt;databricks jobs run-now --json 'orig.json'&lt;/P&gt;&lt;P&gt;Error: invalid character 'o' looking for beginning of value&lt;/P&gt;&lt;P&gt;databricks jobs run-now --json file.json&lt;/P&gt;&lt;P&gt;Error: invalid character 'i' in literal false (expecting 'a')&lt;/P&gt;&lt;P&gt;I have to update the notebook parameters using 'jq' and trigger the job via Databricks CLI and this is blocking me to move forward.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 06:39:49 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/65476#M32820</guid>
      <dc:creator>Vaitheesh</dc:creator>
      <dc:date>2024-04-04T06:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: In Azure Databricks CLI, how to pass in the parameter notebook_params? Error: Got unexpected ext</title>
      <link>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/65479#M32821</link>
      <description>&lt;P&gt;Found the solution!&lt;/P&gt;&lt;P&gt;I just need to add '@' before the json file I'm inputting like this.&lt;/P&gt;&lt;P&gt;databricks jobs run-now --json @file.json&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 06:48:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/in-azure-databricks-cli-how-to-pass-in-the-parameter-notebook/m-p/65479#M32821</guid>
      <dc:creator>Vaitheesh</dc:creator>
      <dc:date>2024-04-04T06:48:00Z</dc:date>
    </item>
  </channel>
</rss>

