<?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 999999 - While calling arcpy.ListFields or arcpy.SearchCursor in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-999999-while-calling-arcpy-listfields-or/m-p/509397#M40003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let me first say that I've only been developing with ArcGIS since Nov 2010, so I'm completely new to this. Sucks to be a noob.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm working with: ArcGIS 10 SP1 / Python 2.6.5 / Linux CentOS 5.5 / Windows 7 VM (for ArcMap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do with arcpy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Create a new file geodatabase and mosaic dataset (MD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Add rasters (ENVI img) to the MD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Build overviews&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Edit attribute tables (to add a time field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no problems until I check for field names with arcpy.ListFields on an MD and get the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't load format DLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which traces back to self._gp.ListFields(*gp_fixargs(args))) in __init__.py and geoporcessing/_base.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also get a similar error while calling arcpy.SearchCursor on a .mxd including the same MD as a single layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A locator with this name does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which trace back to the same init/base scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could these errors be anymore vague?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other functions seem to run fine, such as arcpy.ListDatasets, arcpy.mapping.ListLayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen this error pop up without rhyme or reason while working with arcpy MD's. The only way I can reproduce this error consistently is by adding a colormap MD function in ArcMap. That is, ListFields/SearchCursor runs successfully on my arcpy generated MD/.mxd, but when I add a colormap function in ArcMap calling ListFields/SearchCursor on the modified MD/.mxd produces these errors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(By the way, is there an arcpy function to insert a colormap function in mosaic dataset function chain?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An odd behavior associated with this is: Say I have 2 arcpy generated, error free MD's which I'll refer to as MD1 and MD2. And I add a colormap function to MD1 in ArcMap, but not in MD2. If I ListFields/SearchCursor first on MD2 (w/out colormap), then I can call ListFields/SearchCursor on MD1 without error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or pointers would greatly be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Dec 2010 18:43:08 GMT</pubDate>
    <dc:creator>EdwinPak</dc:creator>
    <dc:date>2010-12-16T18:43:08Z</dc:date>
    <item>
      <title>ERROR 999999 - While calling arcpy.ListFields or arcpy.SearchCursor</title>
      <link>https://community.esri.com/t5/python-questions/error-999999-while-calling-arcpy-listfields-or/m-p/509397#M40003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let me first say that I've only been developing with ArcGIS since Nov 2010, so I'm completely new to this. Sucks to be a noob.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm working with: ArcGIS 10 SP1 / Python 2.6.5 / Linux CentOS 5.5 / Windows 7 VM (for ArcMap)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do with arcpy:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Create a new file geodatabase and mosaic dataset (MD)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Add rasters (ENVI img) to the MD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Build overviews&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Edit attribute tables (to add a time field)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no problems until I check for field names with arcpy.ListFields on an MD and get the error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't load format DLL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which traces back to self._gp.ListFields(*gp_fixargs(args))) in __init__.py and geoporcessing/_base.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also get a similar error while calling arcpy.SearchCursor on a .mxd including the same MD as a single layer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: ERROR 999999: Error executing function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A locator with this name does not exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which trace back to the same init/base scripts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could these errors be anymore vague?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other functions seem to run fine, such as arcpy.ListDatasets, arcpy.mapping.ListLayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've seen this error pop up without rhyme or reason while working with arcpy MD's. The only way I can reproduce this error consistently is by adding a colormap MD function in ArcMap. That is, ListFields/SearchCursor runs successfully on my arcpy generated MD/.mxd, but when I add a colormap function in ArcMap calling ListFields/SearchCursor on the modified MD/.mxd produces these errors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(By the way, is there an arcpy function to insert a colormap function in mosaic dataset function chain?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An odd behavior associated with this is: Say I have 2 arcpy generated, error free MD's which I'll refer to as MD1 and MD2. And I add a colormap function to MD1 in ArcMap, but not in MD2. If I ListFields/SearchCursor first on MD2 (w/out colormap), then I can call ListFields/SearchCursor on MD1 without error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or pointers would greatly be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks much&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 18:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-999999-while-calling-arcpy-listfields-or/m-p/509397#M40003</guid>
      <dc:creator>EdwinPak</dc:creator>
      <dc:date>2010-12-16T18:43:08Z</dc:date>
    </item>
  </channel>
</rss>

