<?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 Multiprocessing w/ Spatial Analyst: FATAL ERROR [INFADI] MISSING DIRECTORY in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiprocessing-w-spatial-analyst-fatal-error/m-p/422569#M5923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running a complex multiprocessing workflow that involves segmenting an AOI to run through a complex workflow that requires tools from the spatial analyst extension. Occasionally I get an error where one of the processes hangs stopping the script, and I can trace it despite how much I try to log each process.&amp;nbsp; What is more, the script fails at different points for each run that it fails on. In watching the command prompt window during execution I saw that it said "FATAL ERROR [INFADI] MISSING DIRECTORY."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each process I create a unique folder that I set the scratch workspace environment variable to. I set the "TEMP" &amp;amp; "TMP" directories to the scratch workspace folder for the process using os.environ.&amp;nbsp; At the end of each process I clean up the scratch workspace and use arcpy.Delete_management("in_memory").&amp;nbsp; Finally, before I execute each spatial analyst tool I check to see if the dataset I am going to execute on exists using arcpy.Exists, and raise an exception if it doesn't.&amp;nbsp; So far I haven't seen a single exception thrown indicating dataset doesn't exist.&amp;nbsp; I have been multiprocessing with arcpy&amp;nbsp;and spatial analyst for years and have never seen this before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The machine I am getting the errors on is a AWS EC2 &lt;SPAN style="color: #333333;"&gt;m4.16xlarge running Windows Server 2012 r2, w/ ArcGIS Desktop 10.5 (w/ background processing loaded), utilizing a floating license (which I have checked out for 30 days).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 May 2019 18:17:34 GMT</pubDate>
    <dc:creator>DavidSiders</dc:creator>
    <dc:date>2019-05-21T18:17:34Z</dc:date>
    <item>
      <title>Multiprocessing w/ Spatial Analyst: FATAL ERROR [INFADI] MISSING DIRECTORY</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiprocessing-w-spatial-analyst-fatal-error/m-p/422569#M5923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running a complex multiprocessing workflow that involves segmenting an AOI to run through a complex workflow that requires tools from the spatial analyst extension. Occasionally I get an error where one of the processes hangs stopping the script, and I can trace it despite how much I try to log each process.&amp;nbsp; What is more, the script fails at different points for each run that it fails on. In watching the command prompt window during execution I saw that it said "FATAL ERROR [INFADI] MISSING DIRECTORY."&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each process I create a unique folder that I set the scratch workspace environment variable to. I set the "TEMP" &amp;amp; "TMP" directories to the scratch workspace folder for the process using os.environ.&amp;nbsp; At the end of each process I clean up the scratch workspace and use arcpy.Delete_management("in_memory").&amp;nbsp; Finally, before I execute each spatial analyst tool I check to see if the dataset I am going to execute on exists using arcpy.Exists, and raise an exception if it doesn't.&amp;nbsp; So far I haven't seen a single exception thrown indicating dataset doesn't exist.&amp;nbsp; I have been multiprocessing with arcpy&amp;nbsp;and spatial analyst for years and have never seen this before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The machine I am getting the errors on is a AWS EC2 &lt;SPAN style="color: #333333;"&gt;m4.16xlarge running Windows Server 2012 r2, w/ ArcGIS Desktop 10.5 (w/ background processing loaded), utilizing a floating license (which I have checked out for 30 days).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 18:17:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/multiprocessing-w-spatial-analyst-fatal-error/m-p/422569#M5923</guid>
      <dc:creator>DavidSiders</dc:creator>
      <dc:date>2019-05-21T18:17:34Z</dc:date>
    </item>
  </channel>
</rss>

