- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PowerBIResAPI: Dataset failing with Invalid credential : (Mez file, M code, Gateway connection)
I have two Semantic models(connecting with PowerBIRESP API via MEZ file) , Connector(MEZ file) is setup on Gateway server..
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.
while refreshing, "admin" one failing with "Invalid Credential"
Connector(MEZ file) is setup on Gateway server.
Now different credentials are here
- Service principal and client secret are saved inside connector to be used by M Code.
- We have added credentials on Power Bi Gateway connection while creating a gateway connection that is used by Semantic model to use gateway.
- User’s credentials who manually logged to Power bi and hit model refresh button.
IF Model returns “Invalid credentials", then what credentials are invalid. What is role of each credential.
What credentials are actually being sed to pull Power bi metadata.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4th credential is userid/service id logged on Power bi Gateway.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
08-04-2024 03:53 AM | |||
10-14-2024 10:16 AM | |||
10-11-2022 06:08 AM | |||
07-18-2024 05:39 AM | |||
04-30-2024 07:20 AM |
User | Count |
---|---|
11 | |
3 | |
3 | |
2 | |
2 |
User | Count |
---|---|
13 | |
6 | |
5 | |
3 | |
2 |