<?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: Error to create a Databricks datasource using Power BI Rest API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3225041#M42569</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;@Anonymous!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "dataSourceType": "Extension",
    "connectionDetails": "{\"extensionDataSourceKind\":\"Databricks\",\"extensionDataSourcePath\":\"{\\\"host\\\":\\\"adbXXX.2.azuredatabricks.net\\\",\\\"httpPath\\\":\\\"\\\\/sql\\\\/1.0\\\\/warehouses\\\\/YYYYYY\\\"}\"}",
    "datasourceName": "Azure Databricks AIDA API REST v4 (D9T5) TESTE",
    "credentialDetails": {
        "credentialType": "Key",
"credentials": "XX=",
        "encryptedConnection": "Encrypted",
        "encryptionAlgorithm": "RSA-OAEP",
        "privacyLevel": "Organizational"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue are related with some missing slashes. This version works well!&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 13:46:56 GMT</pubDate>
    <dc:creator>rafaesanto83</dc:creator>
    <dc:date>2023-05-08T13:46:56Z</dc:date>
    <item>
      <title>Error to create a Databricks datasource using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3074692#M41208</link>
      <description>&lt;P&gt;I successfuly used the "Gateways - Create Datasource" (&lt;A href="https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/create-datasource" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/rest/api/power-bi/gateways/create-datasource&lt;/A&gt;) method from Power BI Rest API to create a SQL datasource, but I´m stuck when I try to create a Databricks datasource.&lt;/P&gt;&lt;P&gt;I saw that there is no Databricks datasource kind, but it could be possible to use the kind "Extension". So a try this code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OBS: I generated the credential part using the data gateway publick key and a Databricks key.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "datasourceName": "Databricks AIDA Teste",
    "datasourceType":"Extension",
         "connectionDetails":{
            "path":"{\"host\":\"adb-xxx.azuredatabricks.net\",\"httpPath\":\"\\/sql\\/1.0\\/warehouses\\/xxx\"}",
            "kind":"Databricks"
         },
    "credentialDetails": {
        "credentialType": "Key",
        "credentials": "xxx",
        "privacyLevel": "Organizational"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And get this error:&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": "Unexpected character encountered while parsing value: {. Path 'connectionDetails', line 4, position 30.",
                "target": "datasourceToGatewayRequest.connectionDetails"
            },
            {
                "message": "'datasourceToGatewayRequest' is a required parameter",
                "target": "datasourceToGatewayRequest"
            }
        ]
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing, or doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 13:52:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3074692#M41208</guid>
      <dc:creator>rafaesanto83</dc:creator>
      <dc:date>2023-02-10T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error to create a Databricks datasource using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3218371#M42510</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/264575"&gt;@rafaesanto83&lt;/a&gt;&amp;nbsp; Did you find a solution to this? I am trying to pull data from PowerBI (user input from sliders on a visual) to Databricks. I thought your solution might be one peice of the puzzle. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 16:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3218371#M42510</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-03T16:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error to create a Databricks datasource using Power BI Rest API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3225041#M42569</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;@Anonymous!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
    "dataSourceType": "Extension",
    "connectionDetails": "{\"extensionDataSourceKind\":\"Databricks\",\"extensionDataSourcePath\":\"{\\\"host\\\":\\\"adbXXX.2.azuredatabricks.net\\\",\\\"httpPath\\\":\\\"\\\\/sql\\\\/1.0\\\\/warehouses\\\\/YYYYYY\\\"}\"}",
    "datasourceName": "Azure Databricks AIDA API REST v4 (D9T5) TESTE",
    "credentialDetails": {
        "credentialType": "Key",
"credentials": "XX=",
        "encryptedConnection": "Encrypted",
        "encryptionAlgorithm": "RSA-OAEP",
        "privacyLevel": "Organizational"
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The issue are related with some missing slashes. This version works well!&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:46:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-to-create-a-Databricks-datasource-using-Power-BI-Rest-API/m-p/3225041#M42569</guid>
      <dc:creator>rafaesanto83</dc:creator>
      <dc:date>2023-05-08T13:46:56Z</dc:date>
    </item>
  </channel>
</rss>

