Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello everyone,
I have an analysis services data source, working with enterprise gateway. I want to write a code that will import a load of pbix files into a specific group, without any additional effort in app.powerbi.com from the user.
So I use the url https://api.powerbi.com/v1.0/myorg/groups/{groupid}/imports, and it imports files fine. The reports and datasets are created.
But when I open any report, it shows me the message
"Report could not access the data source because you have to select which gateway you would like to use".
After I choose the gateway, it works fine.
My question is: can I specify it in my code also? So that when I open the report, it already knows which gateway to use?
Any advice will be much appreciated
AFAIK, there's no such a REST API to configure datasource in gateway. All supported REST APIs are listed here, you can submit your request at Power BI Ideas.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
3 | |
3 | |
2 | |
1 | |
1 |
User | Count |
---|---|
11 | |
4 | |
3 | |
3 | |
2 |