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 / The Function Search ha...
Power Apps
Unanswered

The Function Search has some Invalid Arguments

(0) ShareShare
ReportReport
Posted on by 14

Hi Everyone,

 

Im new to powerapps and trying to use the Search function. Im using a sharepoint list as the datasource. 

However its throwing out an error.  I'm attaching a screenshot. I'm pretty sure that the "FirstName" column is correct and part of the List as shown in the datatable. Can someone tell me what am i doing wrong here? Thanks!

 

ItsMaverick_0-1658766762919.png

 

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Its-Maverick 

    What kind of Column is Location in your list?  Search will only work on Text columns.

     

     

  • Its-Maverick Profile Picture
    14 on at

    Hi Randy,

     

    The Firstname, lastname and location are text columns

  • Its-Maverick Profile Picture
    14 on at

    Hi @RandyHayes ,

    here is a sample data of the Table... As you can see, the Lastname and firstname and the location are text columns... Not sure why its throwing out an error

    ItsMaverick_0-1658766958634.png

     

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Its-Maverick 

    Check the real name of the Location column...

    To determine a column's real name, you can click on the column in the List Settings of your list and then in the address bar of your browser, look at the end of the URL - it will show the real name.

    If that is different than Location, then use what you see in that URL.

  • Its-Maverick Profile Picture
    14 on at

    Thanks @RandyHayes , I will check it tomorrow as I'm already on bed and about to rest. Thanks again

  • Its-Maverick Profile Picture
    14 on at

    Hi @RandyHayes , I followed your suggestion and Hovered the mouse to the FirstName and LastName fields and looked at the details below of the browser.

     

    ItsMaverick_0-1658815096349.png

     

    It is showing field_1, field_2 and so on. I tried using the formula :

    Search('Customers_GS_Sheet', TextInput1.Text, "field_1", "field_2")

     

    and it is now filtering. Thanks for this! Much appreciated.

     

    Is there a way to rename the field_1, field_2 to a more descriptive name?? like field_1 should be FirstName and field_2 should be Last name and so on. Thanks again!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard