Select to view content in your preferred language

Cannot Update Referenced Feature Layer symbology with Python For ArcGIS API

56
0
Friday
Labels (2)
StefanCoe1
Emerging Contributor

Using the third example in this blog post, I have written a script that exports a Feature Layer's symbology to JSON and then imports it. The purpose of the script is to update symbology when we have to re-publish (overwrite) services because we are switching to a new SQL instance. However, while the script works for hosted feature layers, it does does not work for referenced feature layers. The documentation does suggest that this workflow only works for hosted feature layers, which seems odd:

"The update_definition operation supports updating a definition property in a hosted feature layer. The result of this operation is a response indicating success or failure with error code and description."

I also tried the second example in the blog post, which also works for hosted layers but not for referenced layers. The item.get_data() returns an empty dictionary. Any thoughts or suggestions are appreciated. 

0 Kudos
0 Replies