Select to view content in your preferred language

Pause / Resume ExportTileCacheJob - Enterprise Server Error

294
0
11-25-2022 11:25 AM
dpbayer2
New Contributor

I am building a workflow involving Pause/Resume and a Tile Cache Export. The tile cache is hosted in ArcGIS Enterprise, although it is referenced from a Hybrid portal item in AGOL.

I can pause and start the export job, if I leave the app running, and keep hold of the same ExportTileCacheJob.

I get an odd error from ArcGIS Enterprise (10.81), if I instead save the json of the job, restart the application, and resume the job.

The error that is received is: 

Job error 2 Invalid argument. Response from server did not contain a tile cache location.

Should this workflow work (it does seem to for online services). Is there some further step that needs to be followed when restarting a job?

ExportTileCacheJob exportJob = ExportTileCacheJob.FromJson(jobdefinition);

exportJob.Start();

 

The complete trail of messages is:

Error: Resumed job failed
Job started.
Requested tile cache format is compact (.tpk).
Job started from pause.
Requested tile cache format is compact (.tpk).
Creating server job.
Sending request create server job exportTiles.
Received response for create server job exportTiles.
Delaying job status for 1 second.
Sending request server job status.
Received response for server job status.
Server job complete.
Retrieving result from https://utility.arcgis.com/usrsvcs/servers/......./MapServer/jobs/_ags21553243_ch_et_et/results/out_...
Sending request get location of tile cache URL.
Received response for get location of tile cache URL.
Tile cache location URL retrieved: https://....../geostore/rest/directories/arcgisoutput/Secure_FWeb/APGB_RGB5_MapServer/_ags21553243_ch
Sending request get tile cache URL.
Received response for get tile cache URL.
Server job has completed and cannot be canceled.
Job failed. Job error 2 Invalid argument. Response from server did not contain a tile cache location.

 

Thanks

 

0 Kudos
0 Replies