cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Big_S
Post Patron
Post Patron

How can I display more than 2000 records from SQL Database to combo box?

Hi Guys,

How can I display values from SQL Database to combo box? this is my formula 

Sort(Filter(Supplier,Status = 1),Name , Ascending)

6 REPLIES 6
poweractivate
Most Valuable Professional
Most Valuable Professional

@Big_S To check on it -  is it showing more than 2000 in a Gallery?

hi @poweractivate 
I'm only using a combo box to display the values from SQL database here is my example vaues from SQL didnt display all the records using my formula above

Big_S_0-1670478386857.png

 

 

@Big_S 
If I remember it correctly, Power Apps is limited to data fetches in batches of 2000 records.

Is there a possibility to further filter the data set by e.g. Filter(DataSource, StartsWith(Name, Self.SearchText))?
That will also improve UX, because the user will have trouble finding the correct record by scrolling through a list of 2000 items.

@Big_S I'm aware you want to use a Combo Box. Please try it in the Items property of a Gallery temporarily so you could see if it shows more than 2000 Items.

@Big_S 

Comboboxes and dropdowns are limited to the number of items they display.  Anyways, who wants to scroll through such a huge number of items?  As a user, I would find that quite irritating.

poweractivate
Most Valuable Professional
Most Valuable Professional

 

Try these steps

1. Click Settings

2. Scroll down a bit and check the Data row limit . Change it to 1 temporarily.

poweractivate_0-1670516768020.png

 

 

Now try your queries in the Items property of a Gallery.

If you get only one result and expect two or more, you know the data row limit is applying.

Otherwise, if you get two or more results on a Gallery but you get less results on a Combo Box or Drop down, then:

note that there are also other kinds of limits as well depending on the kinds of controls or methods used.

 

For example, note that a Collection populated by using a single call to ClearCollect is subject to the data row limit despite all inner statements being delegable, because ClearCollect by itself is subject to the data row limit. So if the data row limit were set to 1, your Collection may get only 1 item after using ClearCollect by itself.

 

There may be other limits depending on the kind of Control used as well. 

 

To test it more effectively and try to isolate the cause to data row limit triggered by use of a non-delegable operation, use the Items property of a Gallery, since there may be other limits besides just data row limit triggered by use of a non-delegable operation, when using something else such as say a Combo Box, Drop Down, Collection, and so forth.

 

Technically due to how the Gallery works note that it may not actually be showing all results all at once either, however it might be made in a way so that if you scroll for more results it might show more, and that may not be the case for the other controls like Drop Down and Combo Box.

 

Try the above steps and then use a Gallery's Items property and see if you are always getting just one result or not. If you get results cut off only with the other Controls and you can scroll through all the results in the Gallery, it could be because of the Control, and not necessarily the data row limit.

 

Note that Controls such as ComboBox and Dropdown may themselves have limits that are separate from the data row limit but may look like the same number. For example, it's possible 2000 is the upper limit on the Control, if you have your data row limit set to 2000 right now then it could be hard to tell whether a limit on the specific Control is the cause, or whether t's from data row limit triggered by non-delegable operation. To know more clearly if it's from data row limit triggered by non-delegable operation, use the Items property of a Gallery, and also perform the steps above to lower the data row limit to 1, so it's really obvious if there's just 1 record returned and you expect much more.

 

While it may or may not be possible to somehow force these controls like Dropdown or Combo Box to go above the control limit (if there is any), as @Drrickryp says it is not often recommended to try to do this. It's better to make a Gallery work instead for this if you really need it. Besides just a Gallery, it is advisable in most cases to avoid a very large number of results anyway to be shown, for UX reasons as @LaurensM says

 


 

Note that the data row limit is described as being related to delegation in the description.  This is true. However note that the data row limit is not only triggered due to the use of non-delegable operations with respect to the data source that are of the kind the Editor warns you about, there are other cases too. For example suppose the use of ClearCollect by itself. Suppose also all the inner statements inside of ClearCollect are delegable. Suppose your data row limit is 1. To your surprise, you may find only 1 item in the Collection. This is because the ClearCollect is subject to the data row limit, despite all of the statements inside of ClearCollect themselves all being delegable to the data source.

 

Note also that this kind of situation does not give any yellow triangle warning due to parts of the formula being "non-delegable" as well in the Editor, in this kind of case there is simply no warning at all. So to be sure of whether or not the data row limit is really applying to any of your formulas and scenarios, I suggest to lower the Data row limit to 1 and then testing from there to be more sure of it, rather than to rely on the yellow triangle warning's presence or absence in the Editor.

 

See if it helps @Big_S 

 

 

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