cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kervin
Resolver I
Resolver I

limitations powerApps

I am new to using PowerApps,
I have a problem with an Apps with which I have to interact with a Sharepoint list of about 30.000 records.
I am limited to 2,000.
So I thought, at the start, to create a collection, with this instriction;
'ClearCollect (Collection3; {name: List_short_name.Name}; {FirstName: List_short_people.Prenom})'
but at first sight that I make a count on this collection, it also takes only 2,000 records!

What should I do to be able to exploit my 30,000 lines ???

I already posted about it but I did not get an answer. is this an insoluble problem ??

Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @OsmandFernando ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

21 REPLIES 21
Anonymous
Not applicable

So PowerApps is only able to work on 2000 reccords ???
If this is the case the tool only allows to develop a very limited type of application ...

Anonymous
Not applicable

yes....

unfortunately we have a limitation here... I tried to break this putting the table on a collection but only allowed me to go to 4000...

No idea if it is possible to do a work around in this case.

Hi @Kervin and @Anonymous,

 

Forgive the preaching but before you decide whether Powerapps fits your needs, it is critical that you understand Delegation and why it is necessary.  Powerapps is designed to be used on phones and tablets that have limited memory and storage as well as on more robust systems like a desktop computer.  This could not be done without delegating certain functions to run at the server side, like Filter and Sort. Other functions are meant to be used at the local level on the device hosting the app. To get the full picture and the implications I would refer you to two documents and a blog post by @Meneghino:

 Many of us have used Sharepoint for very large lists, some of mine exceed 30,000 items to create apps that run businesses.  When working with large datasets, it is all about designing around the limitations imposed by the platform (ie. Excel, Sharepoint, Sql server, etc) and which Powerapps functions support delegation so that you can bring down a manageable set of data to a local device. I hope this helps.  There are many of us here who will be happy to help you solve issues that arise should you choose to design Powerapps.  

Hey all, in addition to what @Drrickryp so awesomely posted, I thought I could chime in with the thought that considering how much data you need is pretty important.

 

Can you write a filter that will pull in enough data to do what you need or do you need all that data? If you are developing a purely online solution, you may be able to pull in a filtered set that does the trick. If you are developing an offline solution or in certain situations, you may need more. There are ways to get around the limit but there are costs to consider, like storage and loading times, as well as general complexity issues you may encounter later on. 

 

I have a method that I use to pull in 10,000 rows of maintenance data to a phone-based app. The reason for this is that the app is designed for offline use and needs to be pretty much self-contained. Plus, some of the maintenance tasks are annual, so ensuring that enough data is on-hand to keep the last maintenance record isn't guaranteed in 2000 records. Offline development is a tenuous task in PowerApps as I don't think it was really meant for this kind of use and it's real-world ability to do so isn't exactly solid yet. Robot Frustrated

 

That said, here is some code to show how it can be done as well as illustrate the complexity involved. This is production code from an app that has been in use for over a year. I am in the process of overhauling the app due to some changes in our maintenance program, but this bit will be reused. Also, this idea was not mine; I borrowed and adapted it from someone else, though sadly I don't remember who or where from. (If you read this and it was you, please comment so I can thank you!)

 

// I refresh the data source to ensure I am getting the most recent data
        Refresh('[dbo].[MaintenanceRecord]');

// Then I start a clean collection, sorting by ID in my case
        ClearCollect(MaintenanceRecordCollection, Sort('[dbo].[MaintenanceRecord]', ID, Descending));

// This variable tracks the ID where the collection ended so it knows where to start the 
// next time around.
        UpdateContext({MinID: Min(MaintenanceRecordCollection, ID)});

// I then check if the first collection is at a full 2000 records. If so, I filter out everything above 
// that last ID and collect another round of data to the collection. If the first collection has
// less than 2000 records, there wasn't anything more to collect and the If statement ends. I then update the 
// variable that stores the minimum ID that I have collected.
        If(CountRows(MaintenanceRecordCollection)=2000,
            Collect(MaintenanceRecordCollection, 
                Filter(
                    Sort('[dbo].[MaintenanceRecord]', 
                        ID, 
                        Descending
                    ), 
                    ID < MinID
                )
            )
        );
        UpdateContext({MinID: Min(MaintenanceRecordCollection, ID)});

// I do the same as before, this time checking to see if there are 4000 items. If not, it is 
// done. If so, it repeats the process to collect up to 2000 more items. It again collects 
// the minimum ID.
        If(CountRows(MaintenanceRecordCollection)=4000,
            Collect(MaintenanceRecordCollection, 
                Filter(
                    Sort('[dbo].[MaintenanceRecord]', 
                        ID, 
                        Descending
                    ), 
                    ID < MinID
                )
            )
        );
        UpdateContext({MinID: Min(MaintenanceRecordCollection, ID)});

// Lather, rinse, repeat, adding 2000 items each time.
        If(CountRows(MaintenanceRecordCollection)=6000,
            Collect(MaintenanceRecordCollection, 
                Filter(
                    Sort('[dbo].[MaintenanceRecord]', 
                        ID, 
                        Descending
                    ), 
                    ID < MinID
                )
            )
        );
        UpdateContext({MinID: Min(MaintenanceRecordCollection, ID)});

// Pretty exciting stuff, right? Lots of repeating essentially the same thing, just changing the measuring point. If(CountRows(MaintenanceRecordCollection)=8000, Collect(MaintenanceRecordCollection, Filter( Sort('[dbo].[MaintenanceRecord]', ID, Descending ), ID < MinID ) ) );

// Lastly, I save the collection locally. SaveData(MaintenanceRecordCollection, "LocalMaintenanceRecord");

 

Now, in my case I use the ID but there may be a better field to use. At the very least, this is a proof of concept and could spurn some ideas for what your solution may look like. Also, while this is possible, it may not be beneficial for your use case. Considering your needs and the hardware your users will be using is important, as well as how much complexity is manageable for you and, if you are lucky enough to have one, your team. If you don't have a team (I fall into this category) you could stand to think through the implications this may have on your successor and the organization at large. Documentation is a difficult aspect in PowerApps and while you can comment the code now, knowing where to look to find the right comments can be a challenge.

 

PowerApps is a great tool and capable of many creative solutions. And again as @Drrickryp stated, there are many people on these forums who are willing to help others solve issues they encounter. Best of luck to you in your endeavors!

Hello everydody, (and espacely  Wyotim)

I will try the solution Monday at my office and I tell you if it's ok for me.

Anyway a big thank you in advance to all

@wyotim's solution for creating large collections has two other great values.  Collections are immune to delegation limits.  This allows you to use the full array of Powerapps functions on your data.  The second is that collections are cached so the operations performed with them are lightning fast.  If you are running powerapps on a desktop computer with minimal limits on memory and storage they are often the way to go.  With handheld devices, you may reach limitations imposed by the hardware and have to work with delegatable functions to limit the data brought down from the web.  

@wyotim Thank you for much for this code. I tried it but this gives me only the last 2000 records. In my data set with SharePoint I have 2010 lines but it gives me last the last 2000 items. From items 1 to 10 missing, is that how this works?

 

Osmand

Hi @OsmandFernando, are there any delegation warnings in the code you are using (the blue squiggles under an equals sign)? I am wondering if there is a non-delegable field in there. This is assuming you have the app set to the maximum delegation limit of 2000.

 

Otherwise, how many of those code chunks are you using? You would need one for every group of the delegation limit size that you want to pull in. For instance, if you want to pull in 2500 rows of data and your delegation limit is set at 500, you would need 5 of those code chunks. The cut off is by design in the sense that it should only pull in the minimum amount of data needed.

 

Feel free to post what you have and I would be happy to try and sort through it with you!

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (2,032)