Select to view content in your preferred language

cannot write to status.gdb on ManageMapServerCacheTiles process

131
0
12-23-2024 01:36 PM
Labels (2)
BanchanaPandey
Regular Contributor

Hi we are referring to this esri documentation Manage Map Server Cache Tiles (Server)—ArcGIS Pro | Documentation

On the python code example, there is this line below that says while result.status <4, do we know what values can the result have and what they are? I would like what those actual numbered values are from an esri person, and not what AI tells you.

try:

result = arcpy.server.ManageMapServerCacheTiles(myPortalServiceURL, scales, updateMode, numOfCachingServiceInstances, areaOfInterest, updateExtents, waitForJobCompletion, portalURL)

while result.status < 4:

time.sleep(0.2)

We have been struggling to find out what causes the error "could not write to status.gdb" when we run ManageMapServerCacheTiles. Yes you can rebuild cache status or delete cache and delete service and republish service again, but we are tired of doing that. We have checked all permissions and also made sure that there is no firewall issue. 

may be we can play with the result.status and increase the value in time.sleep so that the lock clears out on status.gdb?

Thanks!

0 Kudos
0 Replies