laptop and a wrench

Bogue

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.

Dernière publication: July 23, 2020 ArcGIS Online
Numéro d’ID de bogue BUG-000131640
EnvoiJune 16, 2020
Dernière modificationFebruary 7, 2025
S’applique àArcGIS Online
Version trouvée8.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
StatutWill Not Be Addressed

Informations supplémentaires

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

Solution de contournement

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).

Étapes pour reproduire

ID de bogue: BUG-000131640

Logiciel:

  • ArcGIS Online

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement