<?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 PBI Rest API - Create datasource in gateway error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1194681#M24479</link>
    <description>&lt;P&gt;Hi, everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me. I'm trying to create a datasource in a gateway using PBI Rest API and it shows an error. The body I'm using is the one that is in documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Body&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "dataSourceType": "SQL",
  "connectionDetails": "{\"server\":\"MyServer\",\"database\":\"MyDatabase\"}",
  "datasourceName": "Sample Datasource",
  "credentialDetails": {
    "credentialType": "Windows",
    "credentials": "AB....EF==",
    "encryptedConnection": "Encrypted",
    "encryptionAlgorithm": "RSA-OAEP",
    "privacyLevel": "None"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;Response&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": "DM_GWPipeline_UnknownError",
    "pbi.error": {
      "code": "DM_GWPipeline_UnknownError",
      "parameters": {},
      "details": [
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",
          "detail": {
            "type": 1,
            "value": "Invalid Ciphertext size. Expecting cipher text of atleast length, 344. Provided cipherText length, 10"
          }
        },
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingHResult",
          "detail": {
            "type": 1,
            "value": "-2146233296"
          }
        }
      ],
      "exceptionCulprit": 1
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tip?...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
    <pubDate>Wed, 01 Jul 2020 10:32:53 GMT</pubDate>
    <dc:creator>Angel</dc:creator>
    <dc:date>2020-07-01T10:32:53Z</dc:date>
    <item>
      <title>PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1194681#M24479</link>
      <description>&lt;P&gt;Hi, everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can help me. I'm trying to create a datasource in a gateway using PBI Rest API and it shows an error. The body I'm using is the one that is in documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Body&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "dataSourceType": "SQL",
  "connectionDetails": "{\"server\":\"MyServer\",\"database\":\"MyDatabase\"}",
  "datasourceName": "Sample Datasource",
  "credentialDetails": {
    "credentialType": "Windows",
    "credentials": "AB....EF==",
    "encryptedConnection": "Encrypted",
    "encryptionAlgorithm": "RSA-OAEP",
    "privacyLevel": "None"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;Response&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "error": {
    "code": "DM_GWPipeline_UnknownError",
    "pbi.error": {
      "code": "DM_GWPipeline_UnknownError",
      "parameters": {},
      "details": [
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",
          "detail": {
            "type": 1,
            "value": "Invalid Ciphertext size. Expecting cipher text of atleast length, 344. Provided cipherText length, 10"
          }
        },
        {
          "code": "DM_ErrorDetailNameCode_UnderlyingHResult",
          "detail": {
            "type": 1,
            "value": "-2146233296"
          }
        }
      ],
      "exceptionCulprit": 1
    }
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any tip?...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 10:32:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1194681#M24479</guid>
      <dc:creator>Angel</dc:creator>
      <dc:date>2020-07-01T10:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1196025#M24509</link>
      <description>&lt;P&gt;Doesn't look like your credentials are OAEP padded.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 20:29:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1196025#M24509</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-07-01T20:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1197539#M24524</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you are right. I have found documentation that explains how to encrypt credentials in C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know if there is a cmdlet in Powershell to do that?.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jul 2020 09:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1197539#M24524</guid>
      <dc:creator>Angel</dc:creator>
      <dc:date>2020-07-02T09:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1490746#M26445</link>
      <description>&lt;P&gt;Any update here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to do encryption in Power Shell or how to skip credential details and just add the datasource?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 16:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1490746#M26445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-12T16:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1503069#M26529</link>
      <description>&lt;P&gt;i have the same problem. Anyone?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 20:10:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1503069#M26529</guid>
      <dc:creator>vpartem</dc:creator>
      <dc:date>2020-11-18T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: PBI Rest API - Create datasource in gateway error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1533195#M26686</link>
      <description>&lt;P&gt;Hi all. Here's how to update on-prem datasource credentials using PowerShell:&lt;/P&gt;&lt;P&gt;&lt;A href="https://endjin.com/blog/2020/12/how-to-update-credentials-for-an-on-prem-power-bi-data-source-using-powershell.html" target="_blank" rel="noopener"&gt;How to update credentials for an on-prem Power BI data source using PowerShell&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 14:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PBI-Rest-API-Create-datasource-in-gateway-error/m-p/1533195#M26686</guid>
      <dc:creator>ed-freeman</dc:creator>
      <dc:date>2020-12-04T14:31:00Z</dc:date>
    </item>
  </channel>
</rss>

