cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bhanney2323
Resolver I
Resolver I

Search Function issues

 Hi, i just recently started using powerapps and I am hitting a wall with the search function. I've done a lot of research and I thought I was doing everything right, but I can't get these errors to go away, please help! 

 

I have a SP list called test of only 109 items and I am trying to search that list by using user input and then searching in the "title" column which I have confirmed is a single line of text column. The below screenshots show the gallery of the list and the search function formula I used, as well as the delegation error I get.  When I hover over the formula it also says "expected text value" Not sure if that will help 

 

bhanney2323_0-1593451913875.png 

bhanney2323_1-1593452120234.png

 

 

Update: 6/29/20 2:33pm 

bhanney2323_0-1593456395227.png

Here is the new error and the Location (Gallery2.Items) is where I put the formula 'Search(test, TextInput1.Text, "Title","Material")'

 

I was being dumb and I was putting the formula in the search bar and not the gallery under the items property. The searching capability works but I still am getting a triangle warning me about delegation issues? Should I be concerned? Like I said this specific dataset is well under 500 and 2000 records, so I'm not quite sure why this is even coming up. 

 

1 ACCEPTED SOLUTION

Accepted Solutions

The issue is with the Title. What type of column is it. Some datatype may not work with Search

Try:

Filter(test, StartsWith(Title, TextInput1.Text) Or StartsWith(Material, TextInput1.Text))

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

12 REPLIES 12
eka24
Super User
Super User

Is the code on the Items of the Gallery?

You can GoTo File....Setting...Advance Setting and increase the delegation limit to 2000

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Pstork1
Dual Super User
Dual Super User

Try putting your search inside an IF() that tests to see if anything is in the Search text box.  I think the error you are getting is because you are trying to search with an empty string.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

No the formula shown is in the search input function, the gallery is just pulling from the data source aka 'test' 

 

Yes I have tried that and it does not work, like I said that limit shouldn't be a problem because the data set is only 109 rows

The formula should rather be on the Items of the Gallery.

The idea is to pull data on the Gallery based on what is entered in the textbox

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Yes, thank you! I was being stupid and I was doing the opposite, but can you take a look at my updated post? Any ideas on why I am still getting a delegation error? 

The screenshot is not updated. Show the Gallery with the error

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Just updated the original post. Let me know if you need anything else form, me. 

 

Thank you!

Want to see how the error is shown:

Capture.JPG

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

bhanney2323_0-1593457501792.png

Here you go

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,007)