web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo Box Errors with ...
Power Apps
Answered

Combo Box Errors with SearchItems property

(1) ShareShare
ReportReport
Posted on by 49

Hi everyone,

 

I've spent the majority of the day trying to figure this one out, unfortunately haven't found a solution...

 

I have a combo box (Students) with a Collection as data source.

The collection is dependent on the selection from another combo box (Sites) and I rebuild the collection in the OnChange property of the Sites combo box.

The collection works fine but the Students combo box doesn't show any entries when I click on it, and it is showing 2 errors with the SearchItems property, but when I click on the error it takes me to the DisplayFields property and I see nothing wrong...

If I change the IsSearchable property of the Students combo box to false the errors go away and the collection populates as expected, but the list can go up to almost ~1,700 entries for some sites and the search feature is an absolute necessity in this case.

 

 

Here are some screenshots:

 

formula to build collection on Sites combo box OnChange propertyformula to build collection on Sites combo box OnChange property

 

2 Formula Errors in the Sites combo box2 Formula Errors in the Sites combo box

Unexpected characters error detailUnexpected characters error detail

invalid number of arguments error detailsinvalid number of arguments error details

 

 

Display Fields and Search Fields on Students combo box. All are text fieldsDisplay Fields and Search Fields on Students combo box. All are text fields

 

 

Any help is appreciated 🙂

Categories:
I have the same question (0)
  • lvb884 Profile Picture
    4 on at

    In my case, the error referred to additional characters and not enough arguments, so it seemed like something was going on with the syntax behind the scenes. Note, I have only been using combo boxes in forms and not standalone. Source data is Sharepoint. Between two searchable combo boxes on the same form, one got the error and the other didn't. I realized that the difference was in how I edited the code in the Items property. As a new user, I have been in the habit of commenting out the default code so I could revert back to it in case my new code didn't work. If I typed the new code before the default code, I got the error. If I typed it after, there was no error. Commenting out the default code helped to make sure I typed the new code after whatever hidden code was already there. Sure enough, in the combo box that had the error, I was able to remove the error by deleting (or commenting out) all of the code before the (commented out) default code, and I entered my new code after it. Voila, error was gone and it worked as intended.

  • BjarneDE Profile Picture
    2 on at

    In case you are still having problems with the .searchItems property, I was just told by a colleague that I should disable "Allow Searching" for the combo box and then re-enable it. worked for me 🙂

    BjarneDE_0-1719828632869.png

     

  • Rekokoko Profile Picture
    51 on at

    It does, I didn't have any problems with SP. It all begun once we moved to Dataverse.

  • WarrenBelz Profile Picture
    153,477 Most Valuable Professional on at

    @Rekokoko ,

    No - I probably have used hundreds of them in my apps over the years. I am not sure if it makes a difference but my data source is SharePoint.

  • Rekokoko Profile Picture
    51 on at

    You're wise enough to avoid using combo boxes in your apps.

  • WarrenBelz Profile Picture
    153,477 Most Valuable Professional on at

    @Rekokoko ,

    Sorry to see you are experiencing this - maybe I have been lucky over the last 6 -7 years, but apart from replacing a few corrupt controls, it has been fairly smooth sailing.

  • Rekokoko Profile Picture
    51 on at

    It's not silly - it's the way how you work with Power Apps - create, test, release, it stops working, start randomly deleting and adding back controls.

    Oh, you have a complex logic to get and transform data and dependent formulas? Too bad!

    Man, thanks for trying, but just let it go - I tried everything.

    I have literally items set to a Dataverse table and gazillion times checked search and display fields names, but it still complains about that they're wrong and refuse to work.

    Yes, I refreshed editor and yes I restarted computer and YES, I'm going to rewrite whole thing to the **bleep** .net app and close this whimsical chapter of "low code" in my life.

  • WarrenBelz Profile Picture
    153,477 Most Valuable Professional on at

    @Rekokoko ,

    Maybe silly question, but did you try deleting and re-adding it ? If in a Form, also do the Data Card.

  • Rekokoko Profile Picture
    51 on at

    No, it's classic control - it just stopped working and here you go: bang your head against the wall. Did I mention that app is on production and dozens of users working with it?...

    I've been using Microsoft products for over two decades and I'm shocked with the state of Power Apps.

  • WarrenBelz Profile Picture
    153,477 Most Valuable Professional on at

    @Rekokoko ,

    Is this a Modern or Classic control ? If Modern, yes they are currently lacking some facility that I am sure will come in the future and (like myself) you might consider staying with Classic for the moment.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 403

#2
WarrenBelz Profile Picture

WarrenBelz 338 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 320 Super User 2025 Season 2

Last 30 days Overall leaderboard