cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Invalid-usage-of-the-option-NEXT-in-the-FETCH-stat in powerapps filter

Invalid-usage-of-the-option-NEXT-in-the-FETCH-statement, in correct syntax near <

 

I am getting above error in powerapps filter gallery, the same filter is working fine when done on button click.

4 REPLIES 4
Community Support Team
Community Support Team

Re: Invalid-usage-of-the-option-NEXT-in-the-FETCH-stat in powerapps filter

Hi AmitLoh,

 

Could you provide more details?
1. What’s the data source?
2. How did you configure the function to filter the Gallery? Could you show me the codes?

 

Please check this document about Filter function to see more details about Filter:
https://powerapps.microsoft.com/en-us/tutorials/function-filter-lookup/


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Invalid-usage-of-the-option-NEXT-in-the-FETCH-stat in powerapps filter

Filter(Sort(ourdatasource, RecordId, Ascending),  (ProductGroup=TextInputsearch.Text || LocalProductName=TextInputsearch.Text || GenericName=TextInputsearch.Text || Region1=TextInputsearch.Text || WHOATCCode=TextInputsearch.Text || TherapeuticAreas=TextInputsearch.Text || Indication=TextInputsearch.Text || Description = TextInputsearch.Text || Company = TextInputsearch.Text)))

 

Now same filter works on button click but on gallery Items if I put same filter it gives me this weird error.

Community Support Team
Community Support Team

Re: Invalid-usage-of-the-option-NEXT-in-the-FETCH-stat in powerapps filter

Hi AmitLoh,

 

What are the column types?


I guess there might be some column types that are not supported in the filter function.
Please try to enter Formula1 [,Formula2,…] one by one to see which one is invalid.
Filter( Table, Formula1 [, Formula2, ... ] )

 

I tried with the similar filter function on my side, it can filter with no error. I set the Items property of the Gallery looks like below:
Filter(Sort(listF,ID,Ascending),(Title=TextSearchBox1.Text || q7kf=TextSearchBox1.Text ||g87p=TextSearchBox1.Text))


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Microsoft ManishM
Microsoft

Re: Invalid-usage-of-the-option-NEXT-in-the-FETCH-stat in powerapps filter

 am getting the same error. Any update on this?

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,294)