Skip to main content
Community site session details

Community site session details

Session Id : xHxr1YS8LP6PF+GLd2grPL
Power Apps - Microsoft Dataverse
Answered

Insert 100000 rows from csv file

Like (0) ShareShare
ReportReport
Posted on 19 May 2022 09:51:48 by 402

I want to use a power automate process to insert data from a daily csv file into a customer dataverse table, however, there is the 5000 pagination restriction.  What would be the best way to do this?  Thanks for the advice.  Also, is there a way (after the initial data load) to check for any existing records to either update, skip, or add new (from future files)?

Categories:
  • MayankP Profile Picture
    462 on 19 May 2022 at 11:04:05
    Re: Insert 100000 rows from csv file

    Hi @iskguy 

     

    if you got premium plan then you can increase this limit, otherwise might need to do some work around as mentioned in below article.

    http://thebaretta.blogspot.com/2018/09/microsoft-flow-apply-to-each-limitation.html

     

  • iskguy Profile Picture
    402 on 19 May 2022 at 10:56:03
    Re: Insert 100000 rows from csv file

    The error I get is coming out of Power automate.  Is that the dataflow, or is dataflow something different?

  • Verified answer
    Mira Ghaly Profile Picture
    11,409 Moderator on 19 May 2022 at 10:49:49
    Re: Insert 100000 rows from csv file

    @iskguy 

    Have you considered using Dataflows ?

  • iskguy Profile Picture
    402 on 19 May 2022 at 10:39:43
    Re: Insert 100000 rows from csv file

    I am parsing already to JSON and I get the error when trying to write the rows in the Apply to Each: Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The number of foreach items limit exceeded for action 'Apply_to_each': maximum '5000' and actual '116320'.'.

  • iskguy Profile Picture
    402 on 19 May 2022 at 10:38:03
    Re: Insert 100000 rows from csv file

    Thanks for the reply, but this article I already did see and this is getting data OUT of dataverse, not writing to it.

  • Mira Ghaly Profile Picture
    11,409 Moderator on 19 May 2022 at 09:56:47
    Re: Insert 100000 rows from csv file

    @iskguy 

    Please check the approach below to implement pagination in powerautomate

     

    https://www.c-sharpcorner.com/article/simple-paging-with-fetchxml-on-lists-in-power-automate/

     

     

  • MayankP Profile Picture
    462 on 19 May 2022 at 09:56:12
    Re: Insert 100000 rows from csv file

    Hi @iskguy ,

     

    Please refer following example article for this..

     

    https://manueltgomes.com/microsoft/powerautomate/how-to-parse-csv-file/

     

    since this parses CSV to JSON and imports one row at at time, I guess it should resolve this 5k limit issue....

     

    hope this helps..

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Featured topics