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 / SearchFields Error wit...
Power Apps
Unanswered

SearchFields Error with Filtered Choices in ComboBox Dropdown

(1) ShareShare
ReportReport
Posted on by 16
Dear,

I’m working on a form with multiple questions, including three combo box dropdowns where the Items property uses a conditional format like this:

If(
    _ProjectTypePTD = "BN" || _ProjectTypePTD = "SN",
    FirstN(Choices('Bow thruster execution (PTD informatie V2s)'), 3), // Display the first three options
    If(
        _ProjectTypePTD = "CN",
        LastN(Choices('Bow thruster execution (PTD informatie V2s)'), 3) // Display the last three options
    )
)
 
This setup causes an error in the SearchFields property, which by default is set to ["Value"]. The error message indicates an issue with the table not containing a column of text type, even though the Choices('Bow thruster execution (PTD informatie V2s)') function works fine without any issues. I'm using a dataverse table as source in this case. 

 
I’ve tried alternative methods like Filter and AddColumns, but the error persists when I manipulate the choices. My goal is to display only specific options based on the _ProjectTypePTD variable while retaining the combo box's search functionality.
Does anyone know why the SearchFields property throws this error or how I can resolve it? Any guidance would be greatly appreciated!
 
Thank you!
 
Best regards,

Luuk
Categories:
I have the same question (0)
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Super User 2025 Season 2 on at
    Hello Luuk,
     
    I think the issue is related to the usage of FirstN/LastN, it returns the table with different metadata. I'd check the output first and compare. Maybe you can use a dot after FirstN(), LastN() function to use the output of a function? You can try.
     
    Let me know how it goes.
     
    Best regards,
     
    Artur Stepniak

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
WarrenBelz Profile Picture

WarrenBelz 840 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 332 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 275

Last 30 days Overall leaderboard