laptop and a wrench

Bug

New fields added to a hosted feature layer are not visible in a hosted view layer after a top filter ('topFilter' parameter) is applied to the service definition of the view layer.

Last Published: July 23, 2020 ArcGIS Online
Bug ID Number BUG-000131640
SubmittedJune 16, 2020
Last ModifiedFebruary 7, 2025
Applies toArcGIS Online
Version found8.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusWill Not Be Addressed

Additional Information

This issue will not be addressed in the current release cycle. If this issue persists, contact Esri Support Services.

Workaround

The issue is not reproducible if a top filter is never applied to the view layer (newly added fields must first be updated in the definition of the hosted feature layer view per https://support.esri.com/en/Technical-Article/000017596).

Workaround per Development after adding the new fields to the hosted feature layer:

1) Copy existing layer definition. It will be like:

 {

 "layers" : [

 {

  "adminLayerInfo" : {

  "geometryField" : {"name" : "SHAPE"}, 

  "xssTrustedFields" : "", 

  "viewLayerDefinition" : {

   "table" : 

  {

  "name" : "TopFilterIssue1_0", 

   "sourceServiceName" : "TopFilterIssue1", 

   "sourceLayerId" : 0, 

   "topFilter" : {

   "orderByFields" : "CreationDate DESC", 

   "groupByFields" : "Creator", 

   "topCount" : 1

   }, 

    "sourceLayerFields" : [], 

    "materialized" : false

   }

  }

 }, 

 "id" : 1, 

 "name" : "Point_layer2" 

}

]

 

2) Go to the feature service admin API and delete existing view layer from the service definition (e.g. ..../ArcGIS/rest/admin/services/TopFilterIssue1_view3/FeatureServer/deleteFromDefinition):

{"layers" : [{"id" : 0}]}

 

3) Go back to the feature service admin API and add the layer again (e.g. .../ArcGIS/rest/admin/services/TopFilterIssue1_view3/FeatureServer/addToDefinition) using the JSON in step (1).

Steps to Reproduce

Bug ID: BUG-000131640

Software:

  • ArcGIS Online

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options