<?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 Unable to Update Datasource cerdentials using OAuth2 authentication in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/694714#M19450</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to update datasource for my Power BI Reports using the " Gateways-Update Datasource" API. The Datasource is on cloud. I tried to use the below link to test it&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2_credentials_example" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2_credentials_example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are other details:&lt;/P&gt;&lt;P&gt;Datasource: Cloud&lt;/P&gt;&lt;P&gt;OAuth2 Authentication&lt;/P&gt;&lt;P&gt;Gateway ID and Datasource ID entered which are mandatory&lt;/P&gt;&lt;P&gt;Body: as given in the example from the above link. In the Ket part I have entered the Baerer Key. Also tried with Refresh Key but same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": "DM_GWPipeline_Gateway_InvalidConnectionCredentials",&lt;BR /&gt;"pbi.error": {&lt;BR /&gt;"code": "DM_GWPipeline_Gateway_InvalidConnectionCredentials",&lt;BR /&gt;"parameters": {},&lt;BR /&gt;"details": [&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingErrorCode",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "-2147467259"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "The credentials provided for the Dynamics365BusinessCentral source are invalid. (Source at Dynamics365BusinessCentral.)"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingHResult",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "-2147467259"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceKind",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceOriginKind",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceOriginPath",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourcePath",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.Reason",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "AccessUnauthorized"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.MashupSecurityException.DataSources",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "[{\"kind\":\"Dynamics365BusinessCentral\",\"path\":\"Dynamics365BusinessCentral\"}]"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.MashupSecurityException.Reason",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "AccessUnauthorized"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"exceptionCulprit": 1&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know if I have missed something....&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 08:14:44 GMT</pubDate>
    <dc:creator>amol8286</dc:creator>
    <dc:date>2019-05-20T08:14:44Z</dc:date>
    <item>
      <title>Unable to Update Datasource cerdentials using OAuth2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/694714#M19450</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to update datasource for my Power BI Reports using the " Gateways-Update Datasource" API. The Datasource is on cloud. I tried to use the below link to test it&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2_credentials_example" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/rest/api/power-bi/gateways/updatedatasource#oauth2_credentials_example&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are other details:&lt;/P&gt;&lt;P&gt;Datasource: Cloud&lt;/P&gt;&lt;P&gt;OAuth2 Authentication&lt;/P&gt;&lt;P&gt;Gateway ID and Datasource ID entered which are mandatory&lt;/P&gt;&lt;P&gt;Body: as given in the example from the above link. In the Ket part I have entered the Baerer Key. Also tried with Refresh Key but same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the Response:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": "DM_GWPipeline_Gateway_InvalidConnectionCredentials",&lt;BR /&gt;"pbi.error": {&lt;BR /&gt;"code": "DM_GWPipeline_Gateway_InvalidConnectionCredentials",&lt;BR /&gt;"parameters": {},&lt;BR /&gt;"details": [&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingErrorCode",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "-2147467259"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingErrorMessage",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "The credentials provided for the Dynamics365BusinessCentral source are invalid. (Source at Dynamics365BusinessCentral.)"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "DM_ErrorDetailNameCode_UnderlyingHResult",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "-2147467259"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceKind",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceOriginKind",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourceOriginPath",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.DataSourcePath",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "Dynamics365BusinessCentral"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.CredentialError.Reason",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "AccessUnauthorized"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.MashupSecurityException.DataSources",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "[{\"kind\":\"Dynamics365BusinessCentral\",\"path\":\"Dynamics365BusinessCentral\"}]"&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"code": "Microsoft.Data.Mashup.MashupSecurityException.Reason",&lt;BR /&gt;"detail": {&lt;BR /&gt;"type": 1,&lt;BR /&gt;"value": "AccessUnauthorized"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"exceptionCulprit": 1&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know if I have missed something....&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 08:14:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/694714#M19450</guid>
      <dc:creator>amol8286</dc:creator>
      <dc:date>2019-05-20T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Datasource cerdentials using OAuth2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/695473#M19452</link>
      <description>&lt;P&gt;Any inputs my above query...&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2019 06:22:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/695473#M19452</guid>
      <dc:creator>amol8286</dc:creator>
      <dc:date>2019-05-21T06:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Datasource cerdentials using OAuth2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/696694#M19468</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/6970"&gt;@v-qiuyu-msft&lt;/a&gt; Can you please check it out as we are getting the same problem while updating the credentials using the rest api and data source is Dynamics business central.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 06:06:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/696694#M19468</guid>
      <dc:creator>rahulverma</dc:creator>
      <dc:date>2019-05-22T06:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Datasource cerdentials using OAuth2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/2170364#M32724</link>
      <description>&lt;P&gt;Same problem here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDeveloper%2FAccessUnauthorized-on-Mashup-engine-using-Gateways-Update%2Fm-p%2F2165740%23M32689&amp;amp;data=04%7C01%7Cstefano.giovinetti%40delaware.pro%7Cb871e3ffa8be4cca6bdd08d99d0eff5f%7C17b35a1d057c4ac5a15a08758f7a7064%7C0%7C0%7C637713510007270037%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=G2sdLgal9pabLCOYg2%2FZh7KSDihKnjgVCKuMAGLMBAs%3D&amp;amp;reserved=0" target="_blank"&gt;Re: AccessUnauthorized on Mashup engine using Gateways - Update Datasource API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A valid response from a MS expert would be highly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 09:59:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/2170364#M32724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-03T09:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Update Datasource cerdentials using OAuth2 authentication</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/2230104#M33367</link>
      <description>&lt;P&gt;Here the solution that worked for me:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Developer/AccessUnauthorized-on-Mashup-engine-using-Gateways-Update/m-p/2158106" target="_blank"&gt;https://community.powerbi.com/t5/Developer/AccessUnauthorized-on-Mashup-engine-using-Gateways-Update/m-p/2158106&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 10:50:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Unable-to-Update-Datasource-cerdentials-using-OAuth2/m-p/2230104#M33367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-09T10:50:49Z</dc:date>
    </item>
  </channel>
</rss>

