cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Power_Robert
Helper II
Helper II

Flow takes 10 minutes to create 175 SharePoint Items

Hi,

 

I have a manually triggered flow that parses a json file and creates SharePoint List items.  The json file is pretty basic, but there a few thousand records in the file. It all seems very slow; it takes 10 minutes to process about 175 records into SharePoint List items. How is this possible?

 

I have 8 files to process and it is running over an hour now and it has only created 1700 records. How can this be so slow?

 

The compose has a trim function like this. But also without the compose steps and using the data directly into the Create Item it is taking forever: 

 

if(empty(items('Apply_to_each')?['telnr_prv']),'',trim(items('Apply_to_each')?['telnr_prv']))

 

 

Is there anything I can do to improve the flow to make it run faster?

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User III
Super User III

Hi!
Power Automate is not the best tool in terms of performance, but you can probably improve it.
For example, does you requirements allow 'Apply to each' to iterate in paralel instead of sequentially, which is the default?
If so, go to 'Apply to each' settings, and activate it. You can play with the level of paralelism (max 50 items)

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Degree-of-Parallelism-in-Power-Aut...

It's difficult to say which is the step that impacts performance the most... you can figure out by checking flow execution
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!
Power Automate is not the best tool in terms of performance, but you can probably improve it.
For example, does you requirements allow 'Apply to each' to iterate in paralel instead of sequentially, which is the default?
If so, go to 'Apply to each' settings, and activate it. You can play with the level of paralelism (max 50 items)

https://powerusers.microsoft.com/t5/Power-Automate-Community-Blog/Degree-of-Parallelism-in-Power-Aut...

It's difficult to say which is the step that impacts performance the most... you can figure out by checking flow execution
Hope this helps


Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Just an update:

 

I had to change the flow a bit to make sure no duplicate records are created. It has now been running for 36 hours to create about 37.000 records; I have 8 json files with max 5000 records each. I started a flow for file 1, changed the file name and started the flow again until there were 8 flows running simultaneously. So each of them has so create max 5000 records.

 

So it takes more then 36 hours to create max 5000 records? And is still has to create about 11000 records. 

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (62,320)