<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import Meta Data fail in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703200#M54445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove 64-bit python 2.7 would be my suggestion... you can use ArcGIS Pro your 64-bit needs. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 20:06:38 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-04-25T20:06:38Z</dc:date>
    <item>
      <title>Import Meta Data fail</title>
      <link>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703198#M54443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&amp;nbsp; That part of the script works fine.&amp;nbsp; 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".&amp;nbsp; I can run import metadata from an arc catalog python without a problem.&amp;nbsp; Not sure what I should be looking for....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MetadataImporter_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SourceFeatureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;TargetFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Successfully Imported Metadata From {} To {}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SourceFeatureClass&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;TargetFeatureClass&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;except&lt;/SPAN&gt; Exception &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; err&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt; err
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sendEmail&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;err&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:34:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703198#M54443</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T05:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import Meta Data fail</title>
      <link>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703199#M54444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ESRI tech support has suggested that the issue is due to a 64 bit install of python.exe and a 32 bit import metadata conversion tool.&amp;nbsp; The computer that runs the scheduled task has two python installs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGIS10.5&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;C:\Python27\ArcGISx6410.5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He would like me to 'point' the scheduled task script to the 32 bit exe, but doesn't offer a suggestion as to how to do it.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eta:&amp;nbsp; I went to the script in question, and with a right click chose 'Open With' and selected the 32bit python.exe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:56:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703199#M54444</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-25T19:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Import Meta Data fail</title>
      <link>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703200#M54445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;remove 64-bit python 2.7 would be my suggestion... you can use ArcGIS Pro your 64-bit needs. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 20:06:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703200#M54445</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-25T20:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import Meta Data fail</title>
      <link>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703201#M54446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This particular machine does not have pro on it: it's a server.&amp;nbsp; I think I have it figured out though, as some of the other guys have had the same problem.&amp;nbsp; In the task scheduler, you mojo around with the settings and point the trigger to the 32 bit python.exe and add the script name as an argument....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 20:56:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/import-meta-data-fail/m-p/703201#M54446</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-04-25T20:56:05Z</dc:date>
    </item>
  </channel>
</rss>

