PROBLEM
Attempting to convert metadata to XLST format using Python causes ArcGIS Desktop to crash or fails with the following error:
Error: 000582: Error occurred during execution
The following are two causes for the conversion to fail:
Scenario 1: Python script crashes unexpectedly
The script is executed in a 64-bit environment or 64-bit background geoprocessing is turned on. This is an expected behavior. Conversion tools in the Metadata toolset are not supported in the 64-bit processing environment.
Scenario 2: Error 000582: Error occurred during execution
Conversion tools are based on C# programming language, and do not run natively in Python. Therefore, a Python script must have the required DLL files to be able to understand the calling of the desired tools.
import arcpy import os, sys, string #Show 32bit or 64bit Python/Geoprocessing import ctypes print "4 == 32bit, 8 == 64bit" print ctypes.sizeof(ctypes.c_voidp)
Note: The folder, C:\WINDOWS\assembly is known as the Global Assembly Cache (GAC).
Article ID: 000013123
Get help from ArcGIS experts
Download the Esri Support App