<?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 Re: AddRastersToMosaicDataset - ERROR 999999 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654652#M99356</link>
    <description>&lt;P&gt;Likely a silly question on my part, but have you updated lines 4 &amp;amp; 5 of the Python snippet to the file paths to your Mosaic Dataset and the folder where the individual raster files are stored before running the code?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Oct 2025 21:19:58 GMT</pubDate>
    <dc:creator>Robert_LeClair</dc:creator>
    <dc:date>2025-10-01T21:19:58Z</dc:date>
    <item>
      <title>AddRastersToMosaicDataset - ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654648#M99355</link>
      <description>&lt;P&gt;Getting error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ExecuteError: ERROR 999999: Something unexpected caused the tool to fail.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;with&amp;nbsp;&lt;STRONG&gt;arcpy.management.AddRastersToMosaicDataset&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Don't usually do much imagery work. So, it's possible I'm making a rookie mistake here.&lt;/P&gt;&lt;P&gt;I created a Mosaic Dataset using Tools in ArcGIS Pro 3.1 and adding 200 (discontinuous) file system rasters (TIFF).&lt;/P&gt;&lt;P&gt;Now, I want to see how I can script this with arcpy but the below fails:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
rastertype = "Raster Dataset"

mdname = r"&amp;lt;path_to_mosaic_dataset&amp;gt;"
inpath = r"&amp;lt;path_to_file_system_raster&amp;gt;"

arcpy.management.AddRastersToMosaicDataset(
     mdname, rastertype, inpath)

# I can use arcpy.Describe to confirm that both paths are valid paths to the right data/file type&lt;/LI-CODE&gt;&lt;P&gt;I see some similar reports related to this tool but for older versions of Pro. Anyone seeing this in Pro 3.x or have a suggestion what I should try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 21:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654648#M99355</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2025-10-01T21:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: AddRastersToMosaicDataset - ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654652#M99356</link>
      <description>&lt;P&gt;Likely a silly question on my part, but have you updated lines 4 &amp;amp; 5 of the Python snippet to the file paths to your Mosaic Dataset and the folder where the individual raster files are stored before running the code?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 21:19:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654652#M99356</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-10-01T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: AddRastersToMosaicDataset - ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654678#M99360</link>
      <description>&lt;P&gt;3.1 is quite old, you can go back to 3.3 in the help topic, but for 3.5&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/add-rasters-to-mosaic-dataset.htm" target="_blank"&gt;Add Rasters To Mosaic Dataset (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You can only add rasters to a mosaic dataset contained in a geodatabase. Those created outside a geodatabase can only contain the contents of a previously created mosaic dataset.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So what is the mosaic datased in a gdb?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 22:08:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654678#M99360</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-10-01T22:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: AddRastersToMosaicDataset - ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654798#M99368</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;&amp;nbsp;- there's a little trick to seeing the Help Documentation before 3.3.&amp;nbsp; In the URL for the current release of the ArcGIS Pro documentation, in the URL where you see in the bracket's the word 'latest', type 3.1 there and then hit the Enter key.&amp;nbsp; Now you're seeing the 3.1 documenation!&amp;nbsp; For the MDS topic, the help goes back to 2.6 and then stops.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 14:06:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654798#M99368</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2025-10-02T14:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: AddRastersToMosaicDataset - ERROR 999999</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654888#M99372</link>
      <description>&lt;P&gt;Thanks for chiming in, folks! &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464293"&gt;@Alec&lt;/a&gt;&amp;nbsp;Yeah, of course, I had replaced those &amp;lt;paths&amp;gt; with some real world file paths. But you're right, it's always good to check that stuff. Typically, I use&amp;nbsp; something like:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;os.path.join(arcpy.env.workspace,fc_name) # ... or raster_name in this case&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3924"&gt;@Dan&lt;/a&gt;&amp;nbsp;I find it impossible to keep up with ArcGIS Pro releases. I am glad to have all my environments on some version of 3.x. But I find the gains from upgrading are meager. 2 bug fixes come with 3 new bugs. I'm about to go to 3.3.x or 3.4 to work with Enterprise 11.3+.&lt;/P&gt;&lt;P&gt;In this case, Error 99999 should've made me think. Even at Pro 3+, just re-starting Pro solved the issue. Maybe when we get to ArcGIS Pro 5, this kind of issue will be a thing of the past.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 16:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/addrasterstomosaicdataset-error-999999/m-p/1654888#M99372</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2025-10-02T16:55:04Z</dc:date>
    </item>
  </channel>
</rss>

