AnsweredAssumed Answered

Odd Error in Metadata Script

Question asked by FLBB on Mar 11, 2015
Latest reply on Mar 12, 2015 by FLBB

So I developed a script that traverses through a root directory, and any subdirectories and catalogs layers files. Then exports these layer files' FGDC metadata and outputs them to a folder. The code at this point is hit/miss sometimes completes and sometimes processes "most" of the input and errors out close to being done.


Can anyone point out what's going on here? Error code is

File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\", line 624, in ExportMetadata

    raise e

ExecuteError: ERROR 000582: Error occurred during execution.



import arcpy,os
for dirpath,dirnames,filenames in arcpy.da.Walk(r'C:\folder\files',datatype="Layer"):
    for filename in filenames:
        print filename
        translator = r'C:\Program Files (x86)\ArcGIS\Desktop10.2\Metadata\Translator\ARCGIS2FGDC.xml'