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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,868)