<?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: Power BI REST API - UpdateDatasource - Operation is not supported for selector in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1722000#M28379</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290135"&gt;@zbroinx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show the code corresponding to this error (masking sensitive information).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v-lionel-msft_0-1615798903531.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/474157i1898A4E6F638A3F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v-lionel-msft_0-1615798903531.png" alt="v-lionel-msft_0-1615798903531.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 09:02:42 GMT</pubDate>
    <dc:creator>v-lionel-msft</dc:creator>
    <dc:date>2021-03-15T09:02:42Z</dc:date>
    <item>
      <title>Power BI REST API - UpdateDatasource - Operation is not supported for selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1716986#M28337</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using PowerBI Rest API to update the datasource. (&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Data sources included in this dataset:&amp;nbsp;SqlServer{"server":"bXXXXXX01v\\secondary","database":"XXXXX_DB"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My JSON:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "updateDetails": [
    {
      "datasourceSelector": {
        "datasourceType": "SQL",
        "connectionDetails": {
          "server": "bXXXXXXX01v\\secondary",
          "database": "XXXXX_DB"
        }
      },
      "connectionDetails": {
        "server": "bXXXXXXX02v",
        "database": "XXXXX_DB"
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": "InvalidRequest",
    "message": "Operation is not supported for selector #8"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I change&amp;nbsp;&lt;SPAN&gt;"bXXXXXX01v\\secondary" to&amp;nbsp;"bXXXXXX01v\secondary" I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": "BadRequest",
    "message": "Bad Request",
    "details": [
      {
        "message": "Bad JSON escape sequence: \\s. Path 'updateDetails[0].datasourceSelector.connectionDetails.server', line 7, position 35.",
        "target": "updateDatasourcesRequest.updateDetails[0].datasourceSelector.connectionDetails.server"
      },
      {
        "message": "'updateDatasourcesRequest' is a required parameter",
        "target": "updateDatasourcesRequest"
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the original datasource is just "server": "&lt;SPAN&gt;bXXXXXX01v&lt;/SPAN&gt;", it works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What might be the problem here?&lt;/P&gt;&lt;P&gt;Can I use special characters in the server option?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 15:45:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1716986#M28337</guid>
      <dc:creator>zbroinx</dc:creator>
      <dc:date>2021-03-11T15:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - UpdateDatasource - Operation is not supported for selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1722000#M28379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/290135"&gt;@zbroinx&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please show the code corresponding to this error (masking sensitive information).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="v-lionel-msft_0-1615798903531.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/474157i1898A4E6F638A3F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="v-lionel-msft_0-1615798903531.png" alt="v-lionel-msft_0-1615798903531.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Lionel Chen&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1722000#M28379</guid>
      <dc:creator>v-lionel-msft</dc:creator>
      <dc:date>2021-03-15T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - UpdateDatasource - Operation is not supported for selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1722568#M28387</link>
      <description>&lt;P&gt;This is the code I'm using in the API website:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "updateDetails": [
    {
      "datasourceSelector": {
        "datasourceType": "SQL",
        "connectionDetails": {
          "server": "bXXXXXXX01v\\secondary",
          "database": "XXXXX_DB"
        }
      },
      "connectionDetails": {
        "server": "bXXXXXXX02v",
        "database": "XXXXX_DB"
      }
    }
  ]
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 12:04:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1722568#M28387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-15T12:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI REST API - UpdateDatasource - Operation is not supported for selector</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1800248#M29131</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;After several weeks, microsoft support found the problem.&lt;/P&gt;&lt;P&gt;The PBI report was developed in v1.&lt;/P&gt;&lt;P&gt;To solve this:&lt;/P&gt;&lt;P&gt;- install latest version of PBI Desktop&lt;/P&gt;&lt;P&gt;- Open PBI Report&lt;/P&gt;&lt;P&gt;- Save As with another name&lt;/P&gt;&lt;P&gt;- Publish new file&lt;/P&gt;&lt;P&gt;After this, the error is gone.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 11:38:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Power-BI-REST-API-UpdateDatasource-Operation-is-not-supported/m-p/1800248#M29131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-22T11:38:50Z</dc:date>
    </item>
  </channel>
</rss>

