I have published a number of Feature Layers (hosted) and want to make them accessible to the web via ArcGIS Enterprise Sites. I published via ArcGIS Pro 2.5.2, the data originally comes out of a SDE database and has been copied to the Datastore during the process.
Obviously, I want to add a nice description to every dataset that explains the data and also supports the search. While I have been able to get the description to work in the portal (automated with Python) (see below)...
.... this is not the same what I get as description in ArcGIS Enterprise Sites (see below):
When I click on the Layer in Portal, I see the following:
Obviously Sites shows the description from the layer and not the one in Portal. Is this on purpose? If yes, how is it possible to change the description? I have tried that programmatically as below:
search_result = gis.content.search(query=...)
for i in search_result:
for f in i.layers:
f.properties.description = i.description
and also:
for i in search_result:
update_dict = {'Description': i.description}
subitem = FeatureLayerCollection.fromitem(i)
subitem.manager.update_definition(update_dict)
This seems to work, but it does not get saved. I have also tried "updateDefinition" via REST, but it did not get saved either. Any idea what I can do to make it work? Making the layer editable does not change anything. However, I can change other settings like the capabilities (Query, Extract) with the same approach as above and it gets saved.
Do I make a mistake somewhere?