<?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: PowerBIResAPI: Dataset failing with Invalid credential : (Mez file, M code, Gateway connection) in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267816#M58119</link>
    <description>&lt;P&gt;4th credential is userid/service id logged on Power bi Gateway.&lt;/P&gt;</description>
    <pubDate>Sat, 02 Nov 2024 21:52:01 GMT</pubDate>
    <dc:creator>RajCZ</dc:creator>
    <dc:date>2024-11-02T21:52:01Z</dc:date>
    <item>
      <title>PowerBIResAPI: Dataset failing with Invalid credential : (Mez file, M code, Gateway connection)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267770#M58118</link>
      <description>&lt;P&gt;I have two Semantic models(connecting with PowerBIRESP API via MEZ file) , Connector(MEZ file) is setup on Gateway server..&lt;/P&gt;&lt;P&gt;one needs admin permission on PowerBI API and another doesn't need. both are setup 100% same way, only difference is one pulling Power BI metadata that needs admin permission.&lt;/P&gt;&lt;P&gt;while refreshing, "admin" one failing with "Invalid Credential"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connector(MEZ file) is setup on Gateway server.&lt;/P&gt;&lt;P&gt;Now different credentials are here&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Service principal and client secret are saved inside connector to be used by M Code.&lt;/LI&gt;&lt;LI&gt;We have added credentials on Power Bi Gateway connection while creating a gateway connection that is used by Semantic model to use gateway.&lt;/LI&gt;&lt;LI&gt;User’s credentials who manually logged to Power bi and hit model refresh button.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;IF Model returns “Invalid credentials", then what credentials are invalid. What is role of each credential.&lt;/P&gt;&lt;P&gt;What credentials are actually being sed to pull Power bi metadata.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 16:48:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267770#M58118</guid>
      <dc:creator>RajCZ</dc:creator>
      <dc:date>2024-11-02T16:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIResAPI: Dataset failing with Invalid credential : (Mez file, M code, Gateway connection)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267816#M58119</link>
      <description>&lt;P&gt;4th credential is userid/service id logged on Power bi Gateway.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2024 21:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267816#M58119</guid>
      <dc:creator>RajCZ</dc:creator>
      <dc:date>2024-11-02T21:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBIResAPI: Dataset failing with Invalid credential : (Mez file, M code, Gateway connection)</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267885#M58120</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/596052"&gt;@RajCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Considering you have service principal id and secret hardcoded in the M code of .MeZ file, you dont need to enter any other credentails while configuring the gateway connection. You can use anonymous authentication.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI user credentials and the service account used for gateway installation has nothing to do with the data refresh failure due to invalid credentails.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need a Power BI Consultation? Hire me on &lt;A href="https://bit.ly/4d3oy4s" target="_blank" rel="noopener"&gt;Upwork&lt;/A&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;
&lt;P&gt;Connect on &lt;A href="https://www.linkedin.com/in/tharun-kumar-ravikrindhi/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&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;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 10px; border: solid #cccccc 1px; background: #fafafa no-repeat right 10px center;"&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;Proud to be a Super User!&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI_SuperUser_Rank@2x.png" style="width: 70px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107700iD5193F780866AA58/image-size/large?v=v2&amp;amp;px=999" width="70" role="button" title="PBI_SuperUser_Rank@2x.png" alt="PBI_SuperUser_Rank@2x.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Nov 2024 03:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBIResAPI-Dataset-failing-with-Invalid-credential-Mez-file-M/m-p/4267885#M58120</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2024-11-03T03:57:09Z</dc:date>
    </item>
  </channel>
</rss>

