<?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 How does this metdata Esri script run? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273637#M21139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to impute many metadata elements into an XML using the Esri script supplied here: &lt;BR /&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/metadata/migrating-from-arcmap-to-arcgis-pro.htm#ESRI_SECTION1_098BC26422304FAE96A19FB4B6528E07" title="https://pro.arcgis.com/en/pro-app/arcpy/metadata/migrating-from-arcmap-to-arcgis-pro.htm#ESRI_SECTION1_098BC26422304FAE96A19FB4B6528E07"&gt;Migrating metadata scripts from ArcMap to ArcGIS Pro—Metadata module | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried copying and pasting into a python script and running that, but though it runs, it doesn't do anything nor produce any errors. Per the documentation, it says "This script is designed to be run as a script tool." So, I then imported this in it's documented state as a script tool in ArcGIS Pro. The only parameter listed in the code is the 'Source_Metadata' argument, so I added just this one parameter to the tool. I tried multiple data types that would prompt me to direct the tool to a XML, or a shapefile, or to a feature class. All failed as soon as I tried running the script tool. Error:&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TypeError: 'geoprocessing value object' object is not iterable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do to take the code listed on this documentation page and get it to run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2020 14:18:23 GMT</pubDate>
    <dc:creator>DaveGrolling1</dc:creator>
    <dc:date>2020-07-24T14:18:23Z</dc:date>
    <item>
      <title>How does this metdata Esri script run?</title>
      <link>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273637#M21139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying to impute many metadata elements into an XML using the Esri script supplied here: &lt;BR /&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/metadata/migrating-from-arcmap-to-arcgis-pro.htm#ESRI_SECTION1_098BC26422304FAE96A19FB4B6528E07" title="https://pro.arcgis.com/en/pro-app/arcpy/metadata/migrating-from-arcmap-to-arcgis-pro.htm#ESRI_SECTION1_098BC26422304FAE96A19FB4B6528E07"&gt;Migrating metadata scripts from ArcMap to ArcGIS Pro—Metadata module | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried copying and pasting into a python script and running that, but though it runs, it doesn't do anything nor produce any errors. Per the documentation, it says "This script is designed to be run as a script tool." So, I then imported this in it's documented state as a script tool in ArcGIS Pro. The only parameter listed in the code is the 'Source_Metadata' argument, so I added just this one parameter to the tool. I tried multiple data types that would prompt me to direct the tool to a XML, or a shapefile, or to a feature class. All failed as soon as I tried running the script tool. Error:&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"TypeError: 'geoprocessing value object' object is not iterable"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do to take the code listed on this documentation page and get it to run?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:18:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273637#M21139</guid>
      <dc:creator>DaveGrolling1</dc:creator>
      <dc:date>2020-07-24T14:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How does this metdata Esri script run?</title>
      <link>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273638#M21140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When configuring the script parameter, did you check the box for "Multiple values"? When you do so it returns a list, which is what the function in that metadata script requires as an input (as it is using the input in a for loop). The error message you're getting is a generic Python error which occurs when trying to loop over something that can't be looped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273638#M21140</guid>
      <dc:creator>JoshuaSharp-Heward</dc:creator>
      <dc:date>2020-07-24T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: How does this metdata Esri script run?</title>
      <link>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273639#M21141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;SPAN class=""&gt;&lt;A _jive_internal="true" class="" data-userid="264110" data-username="j0shNZ" href="https://community.esri.com/people/j0shNZ"&gt;Joshua Sharp-Heward&lt;/A&gt;&lt;/SPAN&gt;. That worked.&amp;nbsp; I thought the Multiple Values option was referring to the feature class, not the metadata elements within the feature class. Since I'm only testing with one feature class, I didn't check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 15:01:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-does-this-metdata-esri-script-run/m-p/273639#M21141</guid>
      <dc:creator>DaveGrolling1</dc:creator>
      <dc:date>2020-07-24T15:01:56Z</dc:date>
    </item>
  </channel>
</rss>

