Select to view content in your preferred language

Unable Publish Raster tiff files by Copy_raster in ArcGIS API for Python

72
0
Friday
Labels (1)
DineshperiyasamyK
New Contributor

I am attempting to publish raster TIFF files to the ArcGIS Portal using ArcGIS API for Python by below Code:

from arcgis.raster.analytics import copy_raster
copy_raster(
input_raster=mosaic_tiff,
output_name=mosaic_name,
gis=gis,
context={"byref": True},
folder=folder_date,
output_datastore=datastore,
)


It takes too long to obtain the list of TIF files using list_datastore_content after connecting to the portal. Every tif file is published using a for loop. For instance, if there are eight tif files in the datastore content path, occasionally two or three layers post successfully and error-free. Then, many errors such as these appear each time while publishing other tif files:

1. A connection error has occurred: HTTPSConnectionPool (host='hostname', port=443): Max retries exceeded with url:'', ResponseError('too many 503 error responses')).

2. Attempt to create folder in file share raster store failed.

3. ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.    
Invalid cache raster dataset (CRF) with invalid/inconsistent definition.

0 Kudos
0 Replies