Select to view content in your preferred language

ArcGIS Online client filtering broken

377
5
Jump to solution
07-21-2024 04:09 PM
ChristopherCounsell
MVP Regular Contributor

Hi,

We have a point ArcGIS Online Hosted Feature Layer that has been published for 6+ months. 

Recently it was noticed that client-side filtering is not returning the correct results. e.g. if we have 1000 features with value 'X' in a layer with 10,000 features, we would expect 1000 features to show on the map when the filter of Field=X is applied.

However when applying the filter of Field = X, only 500 of these 1000 features show on the map in some 'soft' filter contexts.

This issue only occurs when the filter is not saved within the map/view e.g.:

  • The Hosted Feature Layer View filter map preview pane
  • The Map Viewer filter preview pane
  • Dashboards/Apps client user filtering

It does work correctly when:

  • Used as a label
  • The filter is saved at a map level
  • The filter is saved at a view level (it's just the preview that suggests only 500 features will show, but then the saved view has all 1000 features).

There's no discernable reason for the data to filter incorrectly as the values show count correctly, label correctly and also work in the contexts stated above.

We've also tried re-indexing the data, removing the index and re-adding the index.

Has anyone else experienced this issue or have any suggestions as to what might be the cause?

The timing of noticing this issue aligns with the June 2024 ArcGIS Online update. I understand there were some changes to filtering. This could be a red herring.

Thanks,

Chris

0 Kudos
1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

This sounds like a different issue.

Ours was 100% shown demonstrated that the filters and values were correct and recognised by the system, at least for looking at choice value counts and map/view filters.

For whatever reason the app filters didn't work as expected.

Tech support had no related reports.

We recalculated the impacted values, to be the same values, and it started working as expected again.

Never seen anything like it.

View solution in original post

0 Kudos
5 Replies
RussRoberts
Esri Notable Contributor

Can you share your web map/layer and I can take a look? You can share it to a group and invite russell_jsapi into it. thanks!  

0 Kudos
AndyAnderson
Frequent Contributor

I have a similar issue when I’m not signed in. Sometimes only some of a field’s matching records appear, and then addition, I try to filter a particular field and continues to show all of them and when I save all of the features disappear!

For this map, the first case happens for the field Comunidad, and the second case occurs for the field Tip de Organización

Procedure:

  1. In the right-side toolbar, click on the button Filter.
  2. In the panel Filter, click on the button Add new.
  3. Choose a field, either “is” or “includes”, and one of the possible values.
  4. Click on the button Save, and all features disappear.
  5. Repeat (1).
  6. The following message appears in the panel Filter:

    Problem displaying filter
    The current filter can't be shown. If the layer is working, you can keep the filter, you just won't be able to change it.

  7. Click on the button Save, and all features re-appear.

— Andy

0 Kudos
AndyAnderson
Frequent Contributor

Actually this occurs whether or not I’m logged in.

0 Kudos
RussRoberts
Esri Notable Contributor

I couldn't reproduce the issue but  noticed under the Types style you have a count of 38 features in other and with Other not enabled to display in the map. The filter you could be selecting is on a different field but could be for one of those Other values under Types which makes it seem like nothing is being displayed. 

RussRoberts_1-1723931597037.png

 

 

0 Kudos
ChristopherCounsell
MVP Regular Contributor

This sounds like a different issue.

Ours was 100% shown demonstrated that the filters and values were correct and recognised by the system, at least for looking at choice value counts and map/view filters.

For whatever reason the app filters didn't work as expected.

Tech support had no related reports.

We recalculated the impacted values, to be the same values, and it started working as expected again.

Never seen anything like it.

0 Kudos