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

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:
  • Suggested answer
    Artur Stepniak Profile Picture
    1,539 Moderator 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard