Exception Traceback (most recent call last)
Input In [10], in <cell line: 13>()
7 def arcgis_save_raster(path_out, image_collection_name):
8 image_collection_item = create_image_collection(image_collection=image_collection_name,
9 input_rasters=path_out,
10 raster_type_name="NetCDF",
11 folder='Testing',
12 gis=gis)
---> 13 arcgis_save_raster(dataset, 'test4')
Input In [10], in arcgis_save_raster(path_out, image_collection_name)
7 def arcgis_save_raster(path_out, image_collection_name):
----> 8 image_collection_item = create_image_collection(image_collection=image_collection_name,
9 input_rasters=path_out,
10 raster_type_name="NetCDF",
11 folder='Testing',
12 gis=gis)
File /opt/conda/lib/python3.9/site-packages/arcgis/raster/analytics.py:3879, in create_image_collection(image_collection, input_rasters, raster_type_name, raster_type_params, out_sr, context, source_mosaic_dataset, gis, future, **kwargs)
3877 gis = _arcgis.env.active_gis if gis is None else gis
3878 # url = gis.properties.helperServices.rasterAnalytics.url
-> 3879 return gis._tools.rasteranalysis.create_image_collection(
3880 image_collection=image_collection,
3881 input_rasters=input_rasters,
3882 raster_type_name=raster_type_name,
3883 raster_type_params=raster_type_params,
3884 out_sr=out_sr,
3885 context=context,
3886 future=future,
3887 md_to_upload=source_mosaic_dataset,
3888 **kwargs,
3889 )
File /opt/conda/lib/python3.9/site-packages/arcgis/_impl/tools.py:10558, in _RasterAnalysisTools.create_image_collection(self, image_collection, input_rasters, raster_type_name, raster_type_params, out_sr, context, future, md_to_upload, **kwargs)
10555 if future:
10557 return RAJob(gpjob, output_service)
> 10558 return RAJob(gpjob, output_service).result()
File /opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_job.py:666, in RAJob.result(self)
664 elif isinstance(self._item, (tuple, list)):
665 [i.delete() for i in self._item if isinstance(i, Item)]
--> 666 raise e
File /opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_job.py:658, in RAJob.result(self)
651 """
652 Return the value returned by the call. If the call hasn't yet completed
653 then this method will wait.
654
655 :return: object
656 """
657 try:
--> 658 return self._gpjob.result()
659 except Exception as e:
660 from arcgis.gis import Item
File /opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_job.py:222, in GPJob.result(self)
220 return self._process_fa(self._future.result())
221 elif self._is_ra:
--> 222 return self._process_ra(self._future.result())
223 elif self._is_ortho:
224 return self._process_ortho(self._future.result())
File /opt/conda/lib/python3.9/concurrent/futures/_base.py:446, in Future.result(self, timeout)
444 raise CancelledError()
445 elif self._state == FINISHED:
--> 446 return self.__get_result()
447 else:
448 raise TimeoutError()
File /opt/conda/lib/python3.9/concurrent/futures/_base.py:391, in Future.__get_result(self)
389 if self._exception:
390 try:
--> 391 raise self._exception
392 finally:
393 # Break a reference cycle with the exception in self._exception
394 self = None
File /opt/conda/lib/python3.9/concurrent/futures/thread.py:58, in _WorkItem.run(self)
55 return
57 try:
---> 58 result = self.fn(*self.args, **self.kwargs)
59 except BaseException as exc:
60 self.future.set_exception(exc)
File /opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_support.py:322, in _future_op(gptool, task_url, job_info, job_id, param_db, return_values, return_messages)
318 def _future_op(
319 gptool, task_url, job_info, job_id, param_db, return_values, return_messages
320 ):
--> 322 job_info = _analysis_job_status(gptool, task_url, job_info)
323 resp = _analysis_job_results(gptool, task_url, job_info, job_id)
325 # ---------------------async-out---------------------#
File /opt/conda/lib/python3.9/site-packages/arcgis/geoprocessing/_support.py:247, in _analysis_job_status(gptool, task_url, job_info)
244 num_messages = num
246 if job_response.get("jobStatus") == "esriJobFailed":
--> 247 raise Exception("Job failed.")
248 elif job_response.get("jobStatus") == "esriJobCancelled":
249 raise Exception("Job cancelled.")
Exception: Job failed.