Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I'm using a custom Power BI connector (.mez) that connects to Microsoft Graph API using OAuth 2.0. The connector works perfectly in Power BI Desktop and also refreshes fine after publishing a report to the Power BI Service.
However, when I try to use this connector inside a Power BI Dataflow, I run into issues:
I choose Blank Query and enter:
GraphAPIConnector.GetcallRecordsDetail()
When I try to configure the connection, it prompts me to create a new OAuth connection instead of using the existing one.
After signing in, I get this error:
"Unable to create an OAuth connection. Reason: Path is invalid:. Details: GraphAPIConnector (Session ID: , Region: europe)"
Solved! Go to Solution.
Hi @SufiyanYousuf ,
Thank you for the confirmation!
Please share the submitted idea link after posting in the ideas forum. Sharing the link here would be helpful for other community members who may have similar feedback and upvote on it and accept your answer as solution to find it easily .
Regards,
Pallavi.
Hi @SufiyanYousuf ,
Could you please confirm if you've submitted this as an idea in the Ideas Forum? If so, sharing the link here would be helpful for other community members who may have similar feedback.
If we don’t hear back, we’ll go ahead and close this thread. For any further discussions or questions, please start a new thread in the Microsoft Fabric Community Forum we’ll be happy to assist.
Thank you for being part of the Microsoft Fabric Community.
Hi @v-pagayam-msft,
Sure, I will be submitting this as an idea in the Idea Forum as soon as possible, so it can be started as a new thread.
Thank you for your response.
Regards,
M.Sufiyan
Hi @SufiyanYousuf ,
Thank you for the confirmation!
Please share the submitted idea link after posting in the ideas forum. Sharing the link here would be helpful for other community members who may have similar feedback and upvote on it and accept your answer as solution to find it easily .
Regards,
Pallavi.
Hey @SufiyanYousuf ,
You're encountering a known limitation when using custom connectors with OAuth authentication in Power BI Dataflows. While your custom .mez connector works perfectly in Power BI Desktop and refreshes in the Power BI Service, Power BI Dataflows (especially standard ones) do not support OAuth-based authentication for custom connectors.
If your environment supports Microsoft Fabric:
Dataflow Gen2 has broader connector support and better OAuth integration.
You can try moving your query into a Dataflow Gen2 and configure the OAuth there.
Requires premium capacity or Fabric license.
Use Azure Data Factory (ADF) or Power Automate to extract data from Microsoft Graph API using the OAuth token and write it to a staging area (e.g., a Data Lake, Azure SQL, or SharePoint).
Then connect Power BI Dataflow to the staging source.
If you can rework your connector or service to expose a secured API with an API key or basic auth, you can avoid the OAuth issue altogether.
Configure an On-Premises Data Gateway and use a web source with an API key or anonymous authentication in the Dataflow.
Write an Azure Function or Logic App that pulls Graph API data using your OAuth connector and dumps the result into a storage location.
Load this data into Power BI from the storage location (Blob Storage, Data Lake, etc.).
For Detailed Information:
Unable to create an OAuth connection. Reason: "Path is invalid" - GitHub Issue
OAuth custom connector - Microsoft Fabric Community
Handling authentication for Power Query connectors - Microsoft Learn
Verifying OAuth configuration for Custom Connectors - Microsoft Support
If you found this solution helpful, please consider accepting it and giving it a kudos (Like) it’s greatly appreciated and helps others find the solution more easily.
Best Regards,
Nasif Azam
Hi @SufiyanYousuf ,
Thank you for reaching out to us on Microsoft fabic Community Forum!
Upon my knowledge, Power Query Dataflows currently do not fully support custom connectors with OAuth authentication even though they work fine in Power BI Desktop and Service.Please refer the link:Dataflows Limitations, restrictions and supported connectors and features - Power BI | Microsoft Lea...
I would recommend posting the idea in the Power BI Ideas Forum .If there is already a post, please upvote on it too. Your input helps guide future improvements.
Thank you.
Regards,
Pallavi G.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
7 | |
2 | |
2 | |
1 |
User | Count |
---|---|
3 | |
3 | |
3 | |
2 | |
2 |