Select to view content in your preferred language

Python tool fails once shared in Portal : ERROR 000840 : The value is not a Raster Dataset

61
1
Jump to solution
yesterday
fcoud92
New Contributor

I created a custom python toolbox (atbx) in ArcGIS Pro 3.5. This tool takes 2 inputs : a Mosaic Dataset and a line vector (Feature Set). It is supposed to return a json file with the pixel values at some position on the line (every x meters).

It works fine in ArcGIS Pro. I shared the Mosaic dataset as Imagery Layer and I can visualize it in MapViewer. In Map Viewer, I draw a line, and it was added to my layers. When I run the tool, I can select the mosaic dataset and the line just fine.

But when I run the tool, I get this error : "ERROR 000840 : The value is not a Raster Dataset".

Why is that ? I shared the Mosaic Dataset as an Imagery Layer, so it should be recognized as a Mosaic Dataset, shouldn't it ?

fcoud92_0-1762161226358.png

 

fcoud92_1-1762161246492.png

 

 

0 Kudos
1 Solution

Accepted Solutions
fcoud92
New Contributor
 

It seems the type "Mosaic dataset" is not kept once the data is shared.

Once on the Portal, it must be referred to as "Image Service", not as mosaic dataset. Changing the parameter type in the tool properties allows to select an image layer in map Viewer.

View solution in original post

0 Kudos
1 Reply
fcoud92
New Contributor
 

It seems the type "Mosaic dataset" is not kept once the data is shared.

Once on the Portal, it must be referred to as "Image Service", not as mosaic dataset. Changing the parameter type in the tool properties allows to select an image layer in map Viewer.

0 Kudos