AnsweredAssumed Answered

Refresh Mosaic Dataset - Do I have to stop Image Service?

Question asked by sjacksonesriaustralia-com-au-esridist Employee on Jun 19, 2018
Latest reply on Jun 20, 2018 by sjacksonesriaustralia-com-au-esridist

I have a mosaic dataset that points to a folder that contains a single NetCDF.

I have a script that:

 

This appears to be working fine.  However if I publish an image service from this Mosaic Dataset, the script fails to run as the image service has a lock on the mosaic dataset.

 

Is there a workaround to this or will I also have to include a start/stop image service (using Python Admin API I presume) into my script?

 

This particular example is just a test run with a file that only changes daily, but I have a requirement to work with another dataset on the FTP that changes on a 30 minute interval.  Stopping and starting the service is going to interrupt users workflows downstream of the image service.

Outcomes