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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
JonnieM
New Member

Power BI REST API Dataflows - Refresh Dataflow not working

Using the 'Try it' feature in the documentation returns the same error message I am getting via logic app;

(The dataflow works fine if I run it manually)

Worked fine all last week.

The call still works for "Dataflow Gen2", but not "Dataflow Gen2 (CI/CD)"

{
"error": {
"code": "InvalidRequest",
"message": "Unexpected dataflow error: "
}
}

 

(Documentation try it link)

Dataflows - Refresh Dataflow - REST API (Power BI Power BI REST APIs) | Microsoft Learn

1 ACCEPTED SOLUTION

I couldn't get that to work with a Service Principal / Registered App (despite the page saying they are supported), but I did discover that one can now tirgger a Fabric Pipeline to run by a Service Principal, and do this from within a Logic App.
Many thanks to this article;
Trigger Microsoft Fabric Data Pipeline using Power Automate/ Logic App – rakhesh.com

View solution in original post

3 REPLIES 3
tayloramy
Super User
Super User

Hi @JonnieM

I recommend using the Scheduler API to start jobs, rather than the legacy dataflow API. 

Job Scheduler - Run On Demand Item Job - REST API (Core) | Microsoft Learn

 





If you found this helpful, consider giving some Kudos.
If I answered your question or solved your problem, mark this post as the solution!

Join the Fabric Discord!

Proud to be a Super User!





I couldn't get that to work with a Service Principal / Registered App (despite the page saying they are supported), but I did discover that one can now tirgger a Fabric Pipeline to run by a Service Principal, and do this from within a Logic App.
Many thanks to this article;
Trigger Microsoft Fabric Data Pipeline using Power Automate/ Logic App – rakhesh.com

HI @JonnieM,

Thank you @tayloramy, fro your insights.

Thank you for sharing the workaround it’s very useful and helps clarify the current limitations with Service Principals. Since this approach works well, you might consider marking your reply as the accepted solution. This can help others facing the same issue quickly find a working approach.

 

Thank you.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.