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 / Searching and Filterin...
Power Apps
Answered

Searching and Filtering Gallery Error - wrong column type

(0) ShareShare
ReportReport
Posted on by 526

I have a gallery that I'm trying to filter and search on. Everything works until I try to add the "ID" field from my SharePoint List. I get an error: "Wrong column type, Expects text type.". I've tried to cast the field as a text value and haven't had any luck there either.

 

Search(
 Filter(
 colAllRequestsConsultation,
 If(
 chkStatusClosed.Value = false,
 true,
 If(
 chkStatusClosed.Value = true,
 Status.Value in "Closed",
 true
 )
 ) && If(
 chkStatusOpen.Value = false,
 true,
 If(
 chkStatusOpen.Value = true,
 Status.Value in "Open",
 true
 )
 ) && TextInput2.Text in ID
 ),
 TextInput2.Text,
 "Title",
 "ID"
)

 
error2.png

Categories:
I have the same question (0)
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    One way is to use AddColumns in the following way:

    Replace colAllRequestsConsultation inside Filter with

    AddColumns(colAllRequestsConsultation, "ID_Text", Text(ID))

    Keep me in mind though that AddColumns is subject to delegation so as long as you have less than 2000 records you should be ok.

    Let me know if this helps.

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Hardit Bhatia
    The Power Addict
    https://thepoweraddict.com

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at
    Glad I could help! Good luck with the rest of the app! Feel free to reach out in case of any questions!

    Thanks!
    Hardit Bhatia
    https://thepoweraddict.com
  • Priyae Profile Picture
    on at

    Hello @PowerAddict 

    I am in need of help related to the same issue for a customer and it is business critical . Let me know how I can connect offline please.

     

    Thanks

  • PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    Hi @pre 

     

    I would love to try to help you out. If you want to connect offline, you can send me an email at hardit.bhatia@thepoweraddict.com

     

    Looking forward to hearing from you!

     

    Thanks,

    Hardit

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard