<?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 Script that copies data from ArcGIS Online to Portal in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033957#M60281</link>
    <description>&lt;P&gt;I have a Python script that is designed to take feature layers from ArcGIS Online and move them to Portal.&amp;nbsp; All the inputs work fine until the last part where it attempts the copy.&amp;nbsp; Here's a screen snip of the script and the output.&amp;nbsp; The script is correctly identifying the feature to copy but then prints there was an error.&amp;nbsp; I'm having trouble determining what is causing the feature not to copy.&lt;/P&gt;&lt;P&gt;Any help or advice is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="feature layer copy.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7818iF9E1361D223A157A/image-size/large?v=v2&amp;amp;px=999" role="button" title="feature layer copy.PNG" alt="feature layer copy.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 15:13:04 GMT</pubDate>
    <dc:creator>JacobRougeaux</dc:creator>
    <dc:date>2021-03-08T15:13:04Z</dc:date>
    <item>
      <title>Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033957#M60281</link>
      <description>&lt;P&gt;I have a Python script that is designed to take feature layers from ArcGIS Online and move them to Portal.&amp;nbsp; All the inputs work fine until the last part where it attempts the copy.&amp;nbsp; Here's a screen snip of the script and the output.&amp;nbsp; The script is correctly identifying the feature to copy but then prints there was an error.&amp;nbsp; I'm having trouble determining what is causing the feature not to copy.&lt;/P&gt;&lt;P&gt;Any help or advice is much appreciated!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="feature layer copy.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7818iF9E1361D223A157A/image-size/large?v=v2&amp;amp;px=999" role="button" title="feature layer copy.PNG" alt="feature layer copy.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033957#M60281</guid>
      <dc:creator>JacobRougeaux</dc:creator>
      <dc:date>2021-03-08T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033967#M60282</link>
      <description>&lt;P&gt;What version of ArcGIS Enterprise do you have your Portal a part of?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:32:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033967#M60282</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-03-08T15:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033972#M60283</link>
      <description>Hi Michael,&lt;BR /&gt;I'm using Enterprise 10.8.&lt;BR /&gt;Jake&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033972#M60283</guid>
      <dc:creator>JacobRougeaux</dc:creator>
      <dc:date>2021-03-08T15:39:37Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033973#M60284</link>
      <description>&lt;P&gt;why not have the functions that you create called within your try-except block, or check within your print statement that "li" actually has any values.&amp;nbsp; only itemId is checked&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 15:42:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033973#M60284</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-08T15:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033984#M60285</link>
      <description>&lt;P&gt;I've been told by ESRI tech support that AGOL is 2 versions ahead of Portal.&amp;nbsp; Would this make a workflow of copying data from AGOL to Portal not possible, although copying data from Portal to AGOL would work?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:03:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033984#M60285</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-03-08T16:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033992#M60286</link>
      <description>&lt;P&gt;I reversed the workflow and told it to copy from Portal to AGOL.&amp;nbsp; That worked.&amp;nbsp; So it appears the versions being different and trying to copy from old (Portal) to new (AGOL) could be the source of the problem?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:38:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033992#M60286</guid>
      <dc:creator>JacobRougeaux</dc:creator>
      <dc:date>2021-03-08T16:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Script that copies data from ArcGIS Online to Portal</title>
      <link>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033993#M60287</link>
      <description>&lt;P&gt;Dan, thanks for the suggestion.&amp;nbsp; I had it print "li" and confirmed that it contains the appropriate value.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 16:40:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/script-that-copies-data-from-arcgis-online-to/m-p/1033993#M60287</guid>
      <dc:creator>JacobRougeaux</dc:creator>
      <dc:date>2021-03-08T16:40:26Z</dc:date>
    </item>
  </channel>
</rss>

