dmcalister

XSLTransform_conversion works on Windows 7 PC but not on Windows 2008 Server

Discussion created by dmcalister on Oct 3, 2013
Latest reply on Oct 4, 2013 by dmcalister
I use a small python script to export metadata to xml. It works fine if I run it on a Windows 7 64 bit PC but it will not run on a Windows 2008 Server. We had this issue in 10 and 10.1 and it was defined as a bug/limitation by Esri. It's still an issue in 10.2. Has anyone else come across this? Code is below, error is:

Traceback (most recent call last): File "D:\Scripts\exportmetadatawin201.py", line 11, in <module> arcpy.XSLTransform_conversion(Source_Metadata, ExportMetadata_xslt, Output_XML,"") File "D:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\conversion.py", line 1366, in XSLTransform raise e arcgisscripting.ExecuteError: ERROR 000582: Error occurred during execution.

import arcpy, sys


Output_XML = sys.argv[1]

Source_Metadata = "Database Connections/sde to server.sde/" + sys.argv[2]


ExportMetadata_xslt = "d:/Scripts/ExportMetadata.xslt"

arcpy.XSLTransform_conversion(Source_Metadata, ExportMetadata_xslt, Output_XML,"")

Outcomes