Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dwh
Helper II
Helper II

Mixed Mode And Rest Api

Hello everyone,
I have two problems to solve and kindly ask for your help.
I have a model consisting of 3 data sources:
- mysql (import mode)
- postgresql (Direct Query mode)
- Api Rest to retrieve information on data refresh
Now! My first problem is mixed mode mapping. I have added the Postegresql and Mysql connection on the gateway and everything works. But when I go to set the gateway on the report connection it gives me the following error

dwh_0-1659711504419.png

 

 

I can't map to data sources.

The second problem is how to map the rest api queries.
This is:
https://api.powerbi.com/v1.0/myorg/datasets/.......id......../refreshes

Can anyone explain to me why?
Can't I set mixed mode on the same Gateway?
I state that the rest Api are not bothering because I tried to remove them and they do not map anyway.
On the other hand, if I publish the report with single connections, everything works.
Thanks everyone for the help

1 ACCEPTED SOLUTION

You cannot use anonymous auth for that. Requires at least AAD Auth.

 

Recommendation is to use the custom connector.

https://github.com/migueesc123/PowerBIRESTAPI

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

When you mix/merge on-premise and cloud data sources all data sources including the cloud data sources must be declared in the gateway. you also need to specifically tell the gateway that it can be used to refresh cloud data sources.

Hi @lbendlin thanks for the reply,

I want to add https://api.powerbi.com/v1.0/myorg/datasets/reste as a data source but with anonymous connection I cannot update the dataset because it tells me that the credentials are not correct.
My problem is that on Power Bi Desktop I am able to use the connection.

You cannot use anonymous auth for that. Requires at least AAD Auth.

 

Recommendation is to use the custom connector.

https://github.com/migueesc123/PowerBIRESTAPI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.