<?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 Error 000865: datasets do not exist in multi-value input script tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-000865-datasets-do-not-exist-in-multi-value/m-p/641635#M50010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a script tool that will take a list of rasters and stack them up so they align perfectly using resample and snap raster. I have the script written and the script tool assembled, but I keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000865: Input raster: D:\folder\file1;D:\folder\file2 does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script tool, I have the parameters set so the input is a Raster Dataset and I have checked the multiple values box so I can input multiple rasters. I noticed that the raster is coming back as a semi-colon delimited string, so I tried both GetParamter() and GetParameterAsText(), but neither of them work:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/509433_Capture.PNG" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;rasterList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;';'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

rasterList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on some print statements it looks like the error is coming before it even gets into my script (none of the AddMessage statements return anything before the error is thrown), but I can add some of my code if that's helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also add that if I only add one raster it works fine (well, it throws an error when it gets to a loop running through the list that it's supposed to be creating) but it doesn't give me an error about a file not existing. It looks like it's reading the semi-colon delimited string as one raster that does not exist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:16:14 GMT</pubDate>
    <dc:creator>RyanHowell1</dc:creator>
    <dc:date>2021-12-12T03:16:14Z</dc:date>
    <item>
      <title>Error 000865: datasets do not exist in multi-value input script tool?</title>
      <link>https://community.esri.com/t5/python-questions/error-000865-datasets-do-not-exist-in-multi-value/m-p/641635#M50010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a script tool that will take a list of rasters and stack them up so they align perfectly using resample and snap raster. I have the script written and the script tool assembled, but I keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000865: Input raster: D:\folder\file1;D:\folder\file2 does not exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my script tool, I have the parameters set so the input is a Raster Dataset and I have checked the multiple values box so I can input multiple rasters. I noticed that the raster is coming back as a semi-colon delimited string, so I tried both GetParamter() and GetParameterAsText(), but neither of them work:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/509433_Capture.PNG" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;rasterList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterAsText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;split&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;';'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

rasterList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameter&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on some print statements it looks like the error is coming before it even gets into my script (none of the AddMessage statements return anything before the error is thrown), but I can add some of my code if that's helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll also add that if I only add one raster it works fine (well, it throws an error when it gets to a loop running through the list that it's supposed to be creating) but it doesn't give me an error about a file not existing. It looks like it's reading the semi-colon delimited string as one raster that does not exist?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-000865-datasets-do-not-exist-in-multi-value/m-p/641635#M50010</guid>
      <dc:creator>RyanHowell1</dc:creator>
      <dc:date>2021-12-12T03:16:14Z</dc:date>
    </item>
  </channel>
</rss>

