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
Super User

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
Super User

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!



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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,166)