<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pause / Resume ExportTileCacheJob - Enterprise Server Error in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/pause-resume-exporttilecachejob-enterprise-server/m-p/1235124#M11496</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I can pause and start the export job, if I leave the app running, and keep hold of the same ExportTileCacheJob.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The error that is received is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job error 2 Invalid argument. Response from server did not contain a tile cache location.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;ExportTileCacheJob exportJob = ExportTileCacheJob.FromJson(jobdefinition);&lt;/P&gt;&lt;P&gt;exportJob.Start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complete trail of messages is:&lt;/P&gt;&lt;P&gt;Error: Resumed job failed&lt;BR /&gt;Job started.&lt;BR /&gt;Requested tile cache format is compact (.tpk).&lt;BR /&gt;Job started from pause.&lt;BR /&gt;Requested tile cache format is compact (.tpk).&lt;BR /&gt;Creating server job.&lt;BR /&gt;Sending request create server job exportTiles.&lt;BR /&gt;Received response for create server job exportTiles.&lt;BR /&gt;Delaying job status for 1 second.&lt;BR /&gt;Sending request server job status.&lt;BR /&gt;Received response for server job status.&lt;BR /&gt;Server job complete.&lt;BR /&gt;Retrieving result from &lt;A href="https://utility.arcgis.com/usrsvcs/servers/......./MapServer/jobs/_ags21553243_ch_et_et/results/out_service_url" target="_blank"&gt;https://utility.arcgis.com/usrsvcs/servers/......./MapServer/jobs/_ags21553243_ch_et_et/results/out_service_url&lt;/A&gt;&lt;BR /&gt;Sending request get location of tile cache URL.&lt;BR /&gt;Received response for get location of tile cache URL.&lt;BR /&gt;Tile cache location URL retrieved: https://....../geostore/rest/directories/arcgisoutput/Secure_FWeb/APGB_RGB5_MapServer/_ags21553243_ch&lt;BR /&gt;Sending request get tile cache URL.&lt;BR /&gt;Received response for get tile cache URL.&lt;BR /&gt;Server job has completed and cannot be canceled.&lt;BR /&gt;Job failed. Job error 2 Invalid argument. Response from server did not contain a tile cache location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Nov 2022 19:25:19 GMT</pubDate>
    <dc:creator>dpbayer2</dc:creator>
    <dc:date>2022-11-25T19:25:19Z</dc:date>
    <item>
      <title>Pause / Resume ExportTileCacheJob - Enterprise Server Error</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/pause-resume-exporttilecachejob-enterprise-server/m-p/1235124#M11496</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I can pause and start the export job, if I leave the app running, and keep hold of the same ExportTileCacheJob.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The error that is received is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job error 2 Invalid argument. Response from server did not contain a tile cache location.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;ExportTileCacheJob exportJob = ExportTileCacheJob.FromJson(jobdefinition);&lt;/P&gt;&lt;P&gt;exportJob.Start();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The complete trail of messages is:&lt;/P&gt;&lt;P&gt;Error: Resumed job failed&lt;BR /&gt;Job started.&lt;BR /&gt;Requested tile cache format is compact (.tpk).&lt;BR /&gt;Job started from pause.&lt;BR /&gt;Requested tile cache format is compact (.tpk).&lt;BR /&gt;Creating server job.&lt;BR /&gt;Sending request create server job exportTiles.&lt;BR /&gt;Received response for create server job exportTiles.&lt;BR /&gt;Delaying job status for 1 second.&lt;BR /&gt;Sending request server job status.&lt;BR /&gt;Received response for server job status.&lt;BR /&gt;Server job complete.&lt;BR /&gt;Retrieving result from &lt;A href="https://utility.arcgis.com/usrsvcs/servers/......./MapServer/jobs/_ags21553243_ch_et_et/results/out_service_url" target="_blank"&gt;https://utility.arcgis.com/usrsvcs/servers/......./MapServer/jobs/_ags21553243_ch_et_et/results/out_service_url&lt;/A&gt;&lt;BR /&gt;Sending request get location of tile cache URL.&lt;BR /&gt;Received response for get location of tile cache URL.&lt;BR /&gt;Tile cache location URL retrieved: https://....../geostore/rest/directories/arcgisoutput/Secure_FWeb/APGB_RGB5_MapServer/_ags21553243_ch&lt;BR /&gt;Sending request get tile cache URL.&lt;BR /&gt;Received response for get tile cache URL.&lt;BR /&gt;Server job has completed and cannot be canceled.&lt;BR /&gt;Job failed. Job error 2 Invalid argument. Response from server did not contain a tile cache location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 19:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/pause-resume-exporttilecachejob-enterprise-server/m-p/1235124#M11496</guid>
      <dc:creator>dpbayer2</dc:creator>
      <dc:date>2022-11-25T19:25:19Z</dc:date>
    </item>
  </channel>
</rss>

