<?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 Python Script Error  in Admin Tools for ArcGIS Online &amp; Portal Questions</title>
    <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/python-script-error/m-p/859413#M308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run a script from ESRI that copies items between two Portal instances. When I run the script I get this error on the python interpreter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage: module1.py [-h]&lt;BR /&gt; sourcePortal sourceAdmin sourcePassword query destPortal&lt;BR /&gt; destAdmin destPassword owner folder&lt;BR /&gt;module1.py: error: too few arguments&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;I have put the correct credentials and parameters in the run script section&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;# Run the script.&lt;BR /&gt;if __name__ == '__main__':&lt;BR /&gt; parser = argparse.ArgumentParser()&lt;BR /&gt; parser.add_argument('sourcePortal',&lt;BR /&gt; help=('https://??????'))&lt;BR /&gt; parser.add_argument('sourceAdmin', help='?????')&lt;BR /&gt; parser.add_argument('sourcePassword', help='????')&lt;BR /&gt; parser.add_argument('query', help='??????')&lt;BR /&gt; parser.add_argument('destPortal',&lt;BR /&gt; help=('https:?????'))&lt;BR /&gt; parser.add_argument('destAdmin', help='??????')&lt;BR /&gt; parser.add_argument('destPassword', help='??????')&lt;BR /&gt; parser.add_argument('owner', help='???????')&lt;BR /&gt; parser.add_argument('folder', help='???????')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script can be found here:&amp;nbsp;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/portal/latest/administer/linux/example-copy-content.htm" title="https://enterprise.arcgis.com/en/portal/latest/administer/linux/example-copy-content.htm"&gt;Example: Copy content—Portal for ArcGIS (10.7) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if anyone has any idea how to solve the error message&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 28 Apr 2019 05:49:46 GMT</pubDate>
    <dc:creator>AbdullahTuwaiya</dc:creator>
    <dc:date>2019-04-28T05:49:46Z</dc:date>
    <item>
      <title>Python Script Error</title>
      <link>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/python-script-error/m-p/859413#M308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to run a script from ESRI that copies items between two Portal instances. When I run the script I get this error on the python interpreter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usage: module1.py [-h]&lt;BR /&gt; sourcePortal sourceAdmin sourcePassword query destPortal&lt;BR /&gt; destAdmin destPassword owner folder&lt;BR /&gt;module1.py: error: too few arguments&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;I have put the correct credentials and parameters in the run script section&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;# Run the script.&lt;BR /&gt;if __name__ == '__main__':&lt;BR /&gt; parser = argparse.ArgumentParser()&lt;BR /&gt; parser.add_argument('sourcePortal',&lt;BR /&gt; help=('https://??????'))&lt;BR /&gt; parser.add_argument('sourceAdmin', help='?????')&lt;BR /&gt; parser.add_argument('sourcePassword', help='????')&lt;BR /&gt; parser.add_argument('query', help='??????')&lt;BR /&gt; parser.add_argument('destPortal',&lt;BR /&gt; help=('https:?????'))&lt;BR /&gt; parser.add_argument('destAdmin', help='??????')&lt;BR /&gt; parser.add_argument('destPassword', help='??????')&lt;BR /&gt; parser.add_argument('owner', help='???????')&lt;BR /&gt; parser.add_argument('folder', help='???????')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script can be found here:&amp;nbsp;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/portal/latest/administer/linux/example-copy-content.htm" title="https://enterprise.arcgis.com/en/portal/latest/administer/linux/example-copy-content.htm"&gt;Example: Copy content—Portal for ArcGIS (10.7) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate if anyone has any idea how to solve the error message&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 28 Apr 2019 05:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/admin-tools-for-arcgis-online-portal-questions/python-script-error/m-p/859413#M308</guid>
      <dc:creator>AbdullahTuwaiya</dc:creator>
      <dc:date>2019-04-28T05:49:46Z</dc:date>
    </item>
  </channel>
</rss>

