<?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 while creating a new datasource on a gateway using REST API in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/3777169#M50739</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;I am&amp;nbsp; able to connect to odata source&amp;nbsp;&lt;SPAN&gt;if it is of type "https" , but cannot connect to "http", I am getting same issue as above.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is "http" considered as on premise connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 06:02:04 GMT</pubDate>
    <dc:creator>dapuvv</dc:creator>
    <dc:date>2024-03-20T06:02:04Z</dc:date>
    <item>
      <title>Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/618614#M18499</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Request Body:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;&lt;BR /&gt;"datasourceType": "File",&lt;BR /&gt;"connectionDetails": "{\"path\":\"D:\\\\temp\\\\folderName\\\\dataFolder\\\\custPayData.xlsx\"}",&lt;BR /&gt;"datasourceName": "data_source_test_1_api",&lt;BR /&gt;&lt;BR /&gt;"credentialDetails": {&lt;BR /&gt;"credentialType": "Windows",&lt;BR /&gt;"credentials":"{\"credentialData\":[{\"name\":\"username\", \"value\":\"DomainName\\UserName\"},{\"name\":\"password\", \"value\":\"password\"}]}",&lt;BR /&gt;"useEndUserOAuth2Credentials": false,&lt;BR /&gt;"encryptedConnection": "NotEncrypted",&lt;BR /&gt;"encryptionAlgorithm": "None",&lt;BR /&gt;"privacyLevel": "None"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": "DMTS_InvalidEncryptionAlgorithmError",&lt;BR /&gt;"pbi.error": {&lt;BR /&gt;"code": "DMTS_InvalidEncryptionAlgorithmError",&lt;BR /&gt;"parameters": {},&lt;BR /&gt;"details": [],&lt;BR /&gt;"exceptionCulprit": 1&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Headers:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="header.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/145454iE9EA5906C2F3C7C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="header.PNG" alt="header.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:42:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/618614#M18499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-07T09:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/637323#M18701</link>
      <description>&lt;P&gt;Joining in on the party. I have the same error when trying to add azure sql db's as datasources.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can set the encryptionalgorithm to&amp;nbsp;RSA-OAEP to avoid this error but then I get a&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{'error': {'code': 'UnknownError', 'pbi.error': {'code': 'UnknownError'}}}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Possibly because for cloud datasources it needs to be set to none according to the docs. But maybe it can help you to set EncryptionAlgorithm to RSA-OAEP (only accepted value according to docs) and see what happens.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 15:21:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/637323#M18701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-05T15:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/734584#M19909</link>
      <description>&lt;P&gt;Same issue here. Considering that this post is already half a year old, has anyone found a solution to this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 21:26:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/734584#M19909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-08T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/735900#M19934</link>
      <description>&lt;P&gt;Found a solution to this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to encrypt your credentials first, before you can make the API call. Encryption method in C# is described here:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/power-bi/developer/encrypt-credentials" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/developer/encrypt-credentials&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;encryptionAlgorithm should be set to "RSA-OAEP"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;See my stackoverflow post here:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/56961746/power-bi-api-post-datasource-errors-with-dmts-invalidencryptionalgorithmerror/56961831#56961831" target="_blank"&gt;https://stackoverflow.com/questions/56961746/power-bi-api-post-datasource-errors-with-dmts-invalidencryptionalgorithmerror/56961831#56961831&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am going to try and build a JS / Node based encryption function and will post here when successful.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 02:04:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/735900#M19934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-10T02:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/1503095#M26530</link>
      <description>&lt;P&gt;Do you have a update?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 20:26:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/1503095#M26530</guid>
      <dc:creator>vpartem</dc:creator>
      <dc:date>2020-11-18T20:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error while creating a new datasource on a gateway using REST API</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/3777169#M50739</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;BR /&gt;I am&amp;nbsp; able to connect to odata source&amp;nbsp;&lt;SPAN&gt;if it is of type "https" , but cannot connect to "http", I am getting same issue as above.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;is "http" considered as on premise connection?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 06:02:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Error-while-creating-a-new-datasource-on-a-gateway-using-REST/m-p/3777169#M50739</guid>
      <dc:creator>dapuvv</dc:creator>
      <dc:date>2024-03-20T06:02:04Z</dc:date>
    </item>
  </channel>
</rss>

