cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
powerb1
Frequent Visitor

Dataflow Resfresh Scheduling

Hi all,

 

Based on a pre defined schedule I would like to refresh Power BI dataflows sequentially. As a test I have created three dataflows and defined the priority in a simple Excel table. So I loop over this table and try to refresh each flow one by one. This flow however seems only to refresh the first dataflow and sometimes also the second; otherwise it just continues running and will give an error after a while (the backend request failed with error code '404').

 

If I however replace the 'Refresh a dataflow' step by mail; then i will receive three emails; one for eacht dataflow in table. PLease see picture for the flow. Any ideas about what could be going wrong here?

 

Thanks in advance

 

EDIT:

Eventually all dataflows were refreshed but the flow was not succesfull. I receive the following error message:

 

 

 

UNEXPECTED500: Action 'JsonifyRefresh', Message: 'Unexpected error happened while reading refresh information from Workspace', Request Id: '795ec710-865f-422d-97e8-9e0305ec8180', Details: Index was outside the bounds of the array., Info (backend): [StatusCode: 200, Reason: OK]

 

 

 

powerb1_0-1614251782073.png

 

 

EDIT 2:

I found out what the issue is, but nut sure how to solve. The 'Refresh a dataflow' step requests the following inputs:

Group Type
workspaceTypeTruestring

Select workspace or environment

Group
groupIdForRefreshDataflowTruestring

The unique identifier of the workspace or environment

Dataflow
dataflowIdForRefreshDataflowTruestring

The unique identifier of the dataflow

 

dataflowIdForRefreshDataflow seems to be a concatination of DataflowId, -, [code], -, DataflowName

I am just not sure what this code is. It consists of 9 characters. Anyone any idea?

1 ACCEPTED SOLUTION

Accepted Solutions
powerb1
Frequent Visitor

@v-duann-msft 

Thanks for you input, but unfortunately above does not work for me. I am using the existing action 'Refresh a dataflow'.

 

I found the solution however. This specific action requires the following inputs:

powerb1_0-1614251206180.png

  • For Group it needs the workspaceId
  • For Dataflow it needs a concatinated string of the dataflowId, a specifc code string and the dataflow name. I was not sure how to retrieve the 'specifc code string' as i call it, but it seems to be always the same code; so i just copied it hardcoded.

To find out what this code is; you can create this action by selecting a dataflow in the dropdown. Then go to 'peek code' and here you can see what this action uses for dataflow. Based on this you can then enter custom value.

Example

I would like to refresh my dataflow named 'Employee', then:

- Group = [workspaceId]

- Dataflow = [dataflowId-code-dataflowName]

 

Use case

I have an Excel sheet where I register all my dataflows and the parent child relations. With flow I automatically trigger these dataflows to run sequentially at specific times/intervals.

View solution in original post

6 REPLIES 6
v-duann-msft
Community Support
Community Support

Hi @powerb1 

 

Thank you for posting.

 

According to your description, you are using flow to update data to dataflow. But error appears due to lack of input.

 

Actually, we can use you can use the http request to update the Power BI dataFlows with Flow, this is the refresh Dataflow API document of PowerBi. Please check below links for further information:

https://docs.microsoft.com/en-us/rest/api/power-bi/dataflows/refreshdataflow

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Custom-Connector-in-Power-Automate...

https://powerusers.microsoft.com/t5/Building-Flows/Refresh-Power-BI-DataFlows-with-Flow/td-p/385778

 

The dataflow ID may look like as below:

v-duann-msft_0-1614144500549.png

 

 

Hope the content above may help you.

 

Thanks

Anna

powerb1
Frequent Visitor

@v-duann-msft 

Thanks for you input, but unfortunately above does not work for me. I am using the existing action 'Refresh a dataflow'.

 

I found the solution however. This specific action requires the following inputs:

powerb1_0-1614251206180.png

  • For Group it needs the workspaceId
  • For Dataflow it needs a concatinated string of the dataflowId, a specifc code string and the dataflow name. I was not sure how to retrieve the 'specifc code string' as i call it, but it seems to be always the same code; so i just copied it hardcoded.

To find out what this code is; you can create this action by selecting a dataflow in the dropdown. Then go to 'peek code' and here you can see what this action uses for dataflow. Based on this you can then enter custom value.

Example

I would like to refresh my dataflow named 'Employee', then:

- Group = [workspaceId]

- Dataflow = [dataflowId-code-dataflowName]

 

Use case

I have an Excel sheet where I register all my dataflows and the parent child relations. With flow I automatically trigger these dataflows to run sequentially at specific times/intervals.

Hi @powerb1,

 

I was excited when I found this post as I've been trying to figure out what was going wrong. 

When I select Workspace and Dataflow from the drop down the flow runs successfully.

 

When I try to make it dynamic (initially just selecting the GUID for Workspace and Dataflow from a SharePoint list from the previous step), the Dataflow refresh actually triggers successfully but the Flow fails with the same error you had.

 

So following your post, I changed the dynamic content to be DataflowID-code-DataflowName and the Dataflow triggered as expected (but so did all previous flow success' and failures) but the flow failed again. I've checked the output and it matches the successful run.

 

KimP_0-1616126910807.png

 

Do you have any ideas what may be going wrong?

 

Thanks.

And now with no further changes, it is running successfully in true PowerAutomate style. Thank you for your post. 

Just a follow up to this.  The "peek code" after you use the drop downs to select environment and dataflow gives you the environment and dataflow guids you need.  Less confusing than the concatenate formula above.  I ended up having this issue when I migrated to different environment and dataflow failed...so I had to create an environment variable for the environment and dataflow id that I can update to the guid of the dataflow in its respective environment.  

I just wanted to say thank you!  You might not have thought much of it, but your reminder to use the 'peek code' function helped unjam me on a similar challenge.  I was trying to use an Environment Variable in my solution to enable my Cloud Flow to use the correct environment as it's deployed through various environments.  I couldn't figure out what I was doing wrong, despite searching Microsoft's literature on it.  What I was finally able to do is go into my Cloud flow where I had chosen the Environment and Group from the dropdowns, then using peek code, found the string that corresponds to the environment and pasted that into the Environment Variable.

Helpful resources

Announcements

Celebrating the May Super User of the Month: Laurens Martens

  @LaurensM  is an exceptional contributor to the Power Platform Community. Super Users like Laurens inspire others through their example, encouragement, and active participation. We are excited to celebrated Laurens as our Super User of the Month for May 2024.   Consistent Engagement:  He consistently engages with the community by answering forum questions, sharing insights, and providing solutions. Laurens dedication helps other users find answers and overcome challenges.   Community Expertise: As a Super User, Laurens plays a crucial role in maintaining a knowledge sharing environment. Always ensuring a positive experience for everyone.   Leadership: He shares valuable insights on community growth, engagement, and future trends. Their contributions help shape the Power Platform Community.   Congratulations, Laurens Martens, for your outstanding work! Keep inspiring others and making a difference in the community!   Keep up the fantastic work!        

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (4,022)