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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combobox Search Unexpe...
Power Apps
Answered

Combobox Search Unexpected Characters. The formula contains 'ParenClose' where 'eof' is expected.

(0) ShareShare
ReportReport
Posted on by 87

Hi, 

I put the Combobox in a form. The data source is Sharepoint and the column has "Single line of text" data type. 

Here is my code on the combobox Items:

Sort(Filter(Table1, Type1 = Dropdown6.Selected.Value).Name1, Name1)

 

I used Sort and Filter function, where the filter is referring to dropdown 6. 

My "DefaultSelectedItems" is 

{Name1: Parent.Default}

 

The Datacard Update is

ComboBox6.Selected.Name1

 


The error/issue occurs when I switch the toggle "Allow searching" or "IsSearchable" to "True". There is no issue when I switch to False.
When it's error and I click on "Edit in the formula bar" it always pointed to "DisplayFields" which I think there is no issue. 

When pointing to "get help for this error", it says Unexpected characters.... 

So I'm not sure what is the issue here.Error Unexpected Characters.JPG

 

Categories:
I have the same question (0)
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    Can you please try adding below formula in "DefaultSelectedItems" of ComboBox: 
    {Value: Parent.Default}

  • HeihoSilver Profile Picture
    87 on at

    @NandiniBhagya20 

    Thanks for the suggestion with {Value: Parent.Default}, but the issue remain the same.

    Changing this also make the combobox became blank when editing the form.

  • HeihoSilver Profile Picture
    87 on at

    Sometimes when I clicked in the "Edit the formula bar", it is either go to "DisplayFields" or "AccessibleLabel". Have no idea with this behavior and how to solve it.

  • Verified answer
    HeihoSilver Profile Picture
    87 on at

    After trial and error I just found the solution.

     

    I clear up the code in the Items, and use the "Depends on" functionality in the Properties and set the required dependencies accordingly.

    HeihoSilver_1-1659353935017.png

     

     

    The code in the Combobox Items became like this, which is ok, but not sorted alphabetically. 

    Filter(Table1, Type1 = Dropdown6.Selected.Value)

    After that I changed the code manually to my original code which is

    Sort(Filter(Table1, Type1 = Dropdown6.Selected.Value).Name1, Name1)

     And it works, no issue or error found!

     

    Maybe it got something to do with the apps reference which may haven't been looked for. Maybe by using "Depends on" functionality at first may helps the apps to create reference for searching items.

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard