<?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 Python tool fails once shared in Portal : ERROR 000840 : The value is not a Raster Dataset in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/python-tool-fails-once-shared-in-portal-error/m-p/1662768#M17014</link>
    <description>&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;But when I run the tool, I get this error : "ERROR 000840 : The value is not a Raster Dataset".&lt;/P&gt;&lt;P&gt;Why is that ? I shared the Mosaic Dataset as an Imagery Layer, so it should be recognized as a Mosaic Dataset, shouldn't it ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcoud92_0-1762161226358.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143039iCAF9DD29FD7B940A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fcoud92_0-1762161226358.png" alt="fcoud92_0-1762161226358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcoud92_1-1762161246492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143040i1CA2078005C740F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fcoud92_1-1762161246492.png" alt="fcoud92_1-1762161246492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2025 09:14:16 GMT</pubDate>
    <dc:creator>fcoud92</dc:creator>
    <dc:date>2025-11-03T09:14:16Z</dc:date>
    <item>
      <title>Python tool fails once shared in Portal : ERROR 000840 : The value is not a Raster Dataset</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/python-tool-fails-once-shared-in-portal-error/m-p/1662768#M17014</link>
      <description>&lt;P&gt;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).&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;But when I run the tool, I get this error : "ERROR 000840 : The value is not a Raster Dataset".&lt;/P&gt;&lt;P&gt;Why is that ? I shared the Mosaic Dataset as an Imagery Layer, so it should be recognized as a Mosaic Dataset, shouldn't it ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcoud92_0-1762161226358.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143039iCAF9DD29FD7B940A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fcoud92_0-1762161226358.png" alt="fcoud92_0-1762161226358.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fcoud92_1-1762161246492.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143040i1CA2078005C740F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fcoud92_1-1762161246492.png" alt="fcoud92_1-1762161246492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2025 09:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/python-tool-fails-once-shared-in-portal-error/m-p/1662768#M17014</guid>
      <dc:creator>fcoud92</dc:creator>
      <dc:date>2025-11-03T09:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool fails once shared in Portal : ERROR 000840 : The value is not a Raster Dataset</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/python-tool-fails-once-shared-in-portal-error/m-p/1662795#M17015</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;It seems the type "Mosaic dataset" is not kept once the data is shared.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Nov 2025 12:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/python-tool-fails-once-shared-in-portal-error/m-p/1662795#M17015</guid>
      <dc:creator>fcoud92</dc:creator>
      <dc:date>2025-11-03T12:41:51Z</dc:date>
    </item>
  </channel>
</rss>

