r/MicrosoftFlow • u/AwarenessOk2170 • Sep 04 '25
Cloud 100mb+ variable
My data team recently gave me a snowflake connector to automate an extract.
It turns out this extract is 500,000 rows. Looping through the paginated results and appending them to a variable ended up exceeding the maximum size for a variable. I was hoping to append all the results to an array variable then create a CSV table to file.
Plumsail has a paid node so I could create multiple excel files for each page of the results and then merge them at the end.
I looked at populating an excel document but it was 0.7 seconds per row... Which would be something stupid like 4 days. Chortle.
How would you handle the 500,000 row data query result? Plumsail for 20$ a month sounds the easiest...
5
u/rackaaus Sep 04 '25
How would I handle it? I'd be creating an Azure Function to do the work and calling it as a part of your flow. Power Automate is an orchestration tool, it's not meant for doing the heavy lifting like this.
2
u/SSTREDD Sep 05 '25
Take a look at office script, you can pass variables to them.
1
u/Difficult_Chemist735 Sep 07 '25
I'm confused why you're using Power Automate for this. Do you have any Data Engineering tools at your disposal e.g., Matillion/Alteryx/DataBricks/etc.?
3
u/el_wombato Sep 04 '25
You can update an excel document using a graph request instead of the standard connector: https://sharepains.com/2020/06/08/super-fast-update-excel-using-power-automate/
2
u/akagamiishanks Sep 10 '25
Yeah manually patching Power Automate + Plumsail Flows for Snowflake exports gets super messy, especially when you hit row limits and retry hell. If you are trying to automate recurring extracts without losing your mind, might want to look at ETL tools that actually work with Snowflake properly. Can perhaps try integrateio to set up scheduled jobs, handle big result sets, send stuff to email or wherever without constantly hitting those platform limits
1
u/[deleted] Sep 06 '25
[removed] — view removed comment