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,"")
Although this is an older post, I ran into this issue with ArcGIS 10.5.1, Python 2.7, Server 2016, and Windows 7. My script to update a data catalog ran fine on my Windows 7 machine, which also had .Net 3.5 installed. When I went to run it on the Server 2016 box, it continued to fail with a 000582 error similar to above. I thought it may have been because .Net 3.5 was not installed, so I installed it, rebooted, and still nothing. Then I realized I had some custom stylesheets that weren't copied over from the Desktop to the Server. Once I had copied those over, the script worked like a charm.