AnsweredAssumed Answered

Import Meta Data fail

Question asked by jborgion on Apr 25, 2018
Latest reply on Apr 25, 2018 by jborgion

I have a script that runs a a scheduled task: it first deletes features in a target feature class and then appends features to that target from a source.  That part of the script works fine.  However, the last part of the script attempts to import meta data from the source to the target and fails with a generic error of "Object: Error in executing tool".  I can run import metadata from an arc catalog python without a problem.  Not sure what I should be looking for....

 

    try:
        arcpy.MetadataImporter_conversion(SourceFeatureClass,TargetFeatureClass)
        print 'Successfully Imported Metadata From {} To {}'.format(SourceFeatureClass,TargetFeatureClass)
    except Exception as err:
        print err
        sendEmail(err)

Outcomes