Showing results for 
Search instead for 
Did you mean: 
Advocate II
Advocate II

Can't create file in Sharepoint Library throught Power Apps and Flow

@RezaDorrani ,
I follow your instruction on Youtube, in the Topic "Upload and tag multiple files from PowerApps to SharePoint Document Library"

But I don't succeed on the "Apply to Each" Step in Flow. It reports an error as follows:

Screen Shot 2019-11-27 at 10.27.07 AM.png

 How can I resolve this issue? Please guide me.

Community Support
Community Support

Hi @carem ,

Firstly, based on your description, I think this is a Flow issue.

I more suggest you post your issue on flow forum.


Could you tell me how many items in your file?

When you are using the Free Version of MS Flow you are limited to 5,000 items in a loop

So if your items number is too large, you will meet this error.

Please note this limit:


To solve this problem ,I suggest you try:

grab the 'first 4999 items' from the array, which does work with an expression like this:  take(variable('array')?['applist']?['apps'],4999)
Here's a doc about this for your reference:
Best regards,
Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have only a few things (5-6 items) in the Gallery in PowerApp that need to upload for once time.

Here is my Flow:

Match every thing with what RezaDorrani didMatch every thing with what RezaDorrani did


When Flow Run and Get Error:

Screen Shot 2019-12-01 at 6.47.13 PM.png


Here my start in PowerApp with the Save Button call that Flow:

Screen Shot 2019-12-01 at 6.48.49 PM.png


If you have any other advice, please share it with me. Thanks to @v-yutliu-msft .

Helpful resources

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,959)