web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Export Power BI data t...
Power Automate
Unanswered

Export Power BI data to Excel / CSV (NO row limits) - Curbal Video

(0) ShareShare
ReportReport
Posted on by

Hi Everyone  - I'm new to Power Automate and I'm trying to improve my Flows!

 

I have successfully implemented previous Curbal videos where small file downloads can be automatically triggered using a Flow.

I have tried to get this blog/video to work:

https://curbal.com/curbal-learning-portal/export-more-than-100k-rows-of-power-bi-data-to-csv-using-power-automate

 

In the Flow it creates a Loop count.
I get this error when it tries to run the Do Until

InvalidTemplate. Unable to process template language expressions for action 'Do_until' at line '1' and column '10985': 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'Integer' and 'String' that do not match.'.

My dataset is called 'PayrollData' but everything else should be the same as the Curbal blog.

 

At "Run a query against a dataset 2" I altered the ROUNDUP for 0 places (did not solve the issue):

EVALUATE
ROW(
"loopsNeeded", ROUNDUP(
CALCULATE(DISTINCTCOUNT('PayrollData'[Index]))/25000,0)+1
)

 

Outputs: 

[
  {
    "[loopsNeeded]"85
  }
]
 
At "Loops2Run" this is my code:
outputs('Run_a_query_against_a_dataset_2')?['@{body('Run_a_query_against_a_dataset_2')}/@{outputs('Run_a_query_against_a_dataset_2')?['body/firstTableRows']}']?[0]?['[loopsNeeded]']
 
And Output - it is a floating point integer?:
outputs('Run_a_query_against_a_dataset_2')?['{"results":[{"tables":[{"rows":[{"[loopsNeeded]":85.0}]}]}],"firstTableRows":[{"[loopsNeeded]":85.0}]}/[{"[loopsNeeded]":85.0}]']?[0]?['[loopsNeeded]']

 

And then the error message occurs for Do Until.

 

I'm not sure if someone I need to Initialise loopsNeeded as an integer.

It wasn't part of the blog or video.

 

Any suggestions welcome 🙂

 

Thanks in advance.

 

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard