You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am updating a vector tile layer with arcpy.server.ReplaceWebLayer and needing to ensure exportTiles=True, for offline capabilities to persist. After updating the service definition, the service needs to be stopped before the .edit() call and then started again after. Although the service shows exportTiles=True, Field maps errors saying that exportTiles is not equal to true unless you stop and start the service after editing the service definition with .edit().
error:
No error, everything appears successful with the code, but when you go to create an offline area in Field Maps, it tells you that exportTiles is not enabled.
Adding a .stop() before .edit() and a .start() after .edit() allows tiles to be successfully taken offline.
Expected behavior
Documentation saying that you need .edit() to be wrapped with start/stop would be nice. Or if .edit() worked alone that would also be nice.
Platform (please complete the following information):
OS: Windows 2012
Browser: Edge
Python API Version: 2.0.0
Additional context
Earlier in the script we are updating the Vector Tile Layer using arcpy.server.ReplaceWebLayer() if that matters in replicating this issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am updating a vector tile layer with arcpy.server.ReplaceWebLayer and needing to ensure exportTiles=True, for offline capabilities to persist. After updating the service definition, the service needs to be stopped before the .edit() call and then started again after. Although the service shows exportTiles=True, Field maps errors saying that exportTiles is not equal to true unless you stop and start the service after editing the service definition with .edit().
To Reproduce
Steps to reproduce the behavior:
error:
No error, everything appears successful with the code, but when you go to create an offline area in Field Maps, it tells you that exportTiles is not enabled.
Adding a .stop() before .edit() and a .start() after .edit() allows tiles to be successfully taken offline.
Expected behavior
Documentation saying that you need .edit() to be wrapped with start/stop would be nice. Or if .edit() worked alone that would also be nice.
Platform (please complete the following information):
Additional context
Earlier in the script we are updating the Vector Tile Layer using arcpy.server.ReplaceWebLayer() if that matters in replicating this issue.
The text was updated successfully, but these errors were encountered: