Anyone have any issues with the command ImportMetadata_conversion not working on ArcGIS server?

3308
9
Jump to solution
08-13-2015 08:54 AM
MichaelMiller2
Occasional Contributor III

I'm have a script that we run as a scheduled task to build feature classes and we are trying to import metadata from pre-configured xml files. The ImportMetadata_conversion will run when the script is invoked on the desktop but not when invoked from ArcGIS server.  Is this a bug in the 64bit version of arcpy on the server?

0 Kudos
1 Solution

Accepted Solutions
MichaelMiller2
Occasional Contributor III

Apparently the arcpy Metadata conversion tools will not run on ArcGIS install using 64-bit python. Looks like we'll have to install a 32-bit ArcGIS Desktop on the server.

View solution in original post

0 Kudos
9 Replies
CCWeedcontrol
Occasional Contributor III

would be nice if you can post your current code...

0 Kudos
MichaelMiller2
Occasional Contributor III
import arcpy


metadata = r"\\itdhq1apt90\InputData\CreateGISDataWarehouse\assets\Bridge_metadata.xml"
output_bridge = r"\\itdhq1apt90\InputData\CreateGISDataWarehouse\output\Staging.gdb\Assets\Bridge"


arcpy.ImportMetadata_conversion(metadata,"FROM_ARCGIS",output_bridge,"ENABLED")
0 Kudos
PacoAlverez
New Contributor III

Are you getting any errors?

0 Kudos
MichaelMiller2
Occasional Contributor III

Errors when run on server

0 Kudos
PacoAlverez
New Contributor III
0 Kudos
MichaelMiller2
Occasional Contributor III

As you can see from the code above, I'm using UNC paths assigned to variables.

0 Kudos
CCWeedcontrol
Occasional Contributor III

ok,

your using arcpy.ImportMetadata_conversion

try using MetadataImporter_conversion

try something like.

  1. # Local variables...
  2. sde_DEVGIS_Wetlands = "Database Connections\\HOU-SRVRNPRD2 (devgis - sde).sde\\sde.DEVGIS.DevelopmentAndTesting\\sde.DEVGIS.Wetlands"
  3. Wetlands_xml = "K:\\GIS Data\\Metadata\\Wetlands.xml"
  4. arcpy.MetadataImporter_conversion(Wetlands_xml, sde_DEVGIS_Wetlands)
0 Kudos
MichaelMiller2
Occasional Contributor III

Both ImportMetadata_conversion and MetadataImporter_conversion work when invoked in a test script on the desktop, but neither work when invoked by the same test script on ArcGIS server.

0 Kudos
MichaelMiller2
Occasional Contributor III

Apparently the arcpy Metadata conversion tools will not run on ArcGIS install using 64-bit python. Looks like we'll have to install a 32-bit ArcGIS Desktop on the server.

0 Kudos