<?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: clone_items 'NoneType' ojbect has no attribute 'metadata' in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376293#M9601</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/681236"&gt;@ResourceAnalyst&lt;/a&gt;, are you sure that you are getting an object back on your item_to_migrate?&lt;/P&gt;&lt;P&gt;Things to look out for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;if your source data is not a hosted feature layer you have to first manually publish it in the destination&lt;/LI&gt;&lt;LI&gt;I would turn on preserve item id flag if it is enterprise.&lt;/LI&gt;&lt;LI&gt;also try to set the copy_data flag to false.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 05:41:26 GMT</pubDate>
    <dc:creator>hlindemann</dc:creator>
    <dc:date>2024-01-31T05:41:26Z</dc:date>
    <item>
      <title>clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376256#M9600</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm attempting to build a simple script to migrate an Experience Builder app from a development to production environment but receiving&amp;nbsp; 'NoneType' ojbect has no attribute 'metadata' on the final line.&lt;/P&gt;&lt;P&gt;The item_to_migrate is an object and does have a valid metadata property unless that's not the problem here?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

portal_password = '***'
user = '***'

dev_gis = GIS("https://***/portal", user, portal_password)
prod_gis = GIS("https://***/portal", user, portal_password)

item_to_migrate = dev_gis.content.get("1ff4d32bc2344739b6b4e4df61f5de08")

clone_result = prod_gis.content.clone_items(items=[item_to_migrate],folder="Asset")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 01:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376256#M9600</guid>
      <dc:creator>ResourceAnalyst</dc:creator>
      <dc:date>2024-01-31T01:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376293#M9601</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/681236"&gt;@ResourceAnalyst&lt;/a&gt;, are you sure that you are getting an object back on your item_to_migrate?&lt;/P&gt;&lt;P&gt;Things to look out for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;if your source data is not a hosted feature layer you have to first manually publish it in the destination&lt;/LI&gt;&lt;LI&gt;I would turn on preserve item id flag if it is enterprise.&lt;/LI&gt;&lt;LI&gt;also try to set the copy_data flag to false.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Henry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 05:41:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376293#M9601</guid>
      <dc:creator>hlindemann</dc:creator>
      <dc:date>2024-01-31T05:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376865#M9602</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;The source data is already published and I have added those 2 flags but the same error above remains. Object from VS Code as below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{'_portal': &amp;lt;arcgis.gis._impl._portalpy.Portal object at 0x000002623EF78370&amp;gt;, '_gis': GIS @ https://
*.com.au/portal version:10.3, 'itemid': '1ff4d32bc2344739b6b4e4df61f5de08', 'thumbnail': None, '
_workdir': 'C:\\Users\\*\\AppData\\Local\\Temp\\2', '_hydrated': False, 'id': '1ff4d32bc2344739b6b4e
4df61f5de08', 'owner': '*', 'created': 1698098887072, 'isOrgItem': True, 'modified': 170666283
8039, 'guid': None, 'name': None, 'title': 'Assets', 'type': 'Web Experience', 'typeKeywords': ['EXB Exp
erience', 'JavaScript', 'publishVersion:1.10.0', 'Ready To Use', 'status: Published', 'version:1.10.0',
'Web Application', 'Web Experience', 'Web Mapping Application', 'Web Page', 'Web Site', 'Metadata'], 'de
scription': 'Test to see if metadata gets populated.', 'tags': ['asset'], 'snippet': 'Simple app to main
tain assets for Land Team', 'documentation': None, 'extent': [], 'categories': [], 'spatialReference': N
one, 'accessInformation': None, 'licenseInfo': None, 'culture': 'en-us', 'properties': None, 'advancedSe
ttings': None, 'url': 'https://*.com.au/portal/apps/experiencebuilder/experience/?id=1ff4d32
bc2344739b6b4e4df61f5de08', 'proxyFilter': None, 'access': 'shared', 'size': 132816, 'subInfo': 0, 'appC
ategories': [], 'industries': [], 'languages': [], 'largeThumbnail': None, 'banner': None, 'screenshots'
: [], 'listed': False, 'ownerFolder': '7c3df485a8ff438c8d01f4af2e19b066', 'protected': False, 'commentsE
nabled': False, 'numComments': 0, 'numRatings': 0, 'avgRating': 0, 'numViews': 44, 'itemControl': 'admin
', 'scoreCompleteness': 20, 'groupDesignations': None, 'lastViewed': -1, '_depend': &amp;lt;Dependencies for 1f
f4d32bc2344739b6b4e4df61f5de08&amp;gt;}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 02:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376865#M9602</guid>
      <dc:creator>ResourceAnalyst</dc:creator>
      <dc:date>2024-02-01T02:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376872#M9603</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/681236"&gt;@ResourceAnalyst&lt;/a&gt;,&amp;nbsp;What version of portal do you have deployed? and can you add the track trace e.g. the error that you get from the script?&lt;/P&gt;&lt;P&gt;Other methods you can try to use is collaboration or try using the group migration manger&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#groupmigrationmanager" target="_blank"&gt;arcgis.gis module | ArcGIS API for Python&lt;/A&gt;&lt;BR /&gt;is creates a package that you can import on the other system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 03:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1376872#M9603</guid>
      <dc:creator>hlindemann</dc:creator>
      <dc:date>2024-02-01T03:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1377398#M9609</link>
      <description>&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Portal 11.1&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Exception has occurred: AttributeError
'NoneType' object has no attribute 'metadata'
  File "R:\Applications\Scripts\GIS\ArcGIS Enterprise\CopyPortalItemSimple.py", line 26, in &amp;lt;module&amp;gt;
    clone_result = prod_gis.content.clone_items(items=[item_to_migrate],folder="Asset",copy_data=False,preserve_item_id=True)
AttributeError: 'NoneType' object has no attribute 'metadata'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 02:03:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1377398#M9609</guid>
      <dc:creator>ResourceAnalyst</dc:creator>
      <dc:date>2024-02-02T02:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1377430#M9611</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/681236"&gt;@ResourceAnalyst&lt;/a&gt;,&amp;nbsp;I had a deep dive into this problem, and the only difference I can see is that your object does not look like it is correct, compared to one that I spun up, see below.&lt;/P&gt;&lt;P&gt;This might then suggest an API version problem for the ArcGIS API are you running your code out of ArcGIS Pro or a standalone instance, if standalone can you upgrade the ArcGIS Module if Pro which version are you running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{'id': '361dcd0c4bec47fab3dbc4eac861cb52', 'owner': 'portaladmin', 'created': 1706849601820, 'isOrgItem': True, 'modified': 1706849622438, 'guid': None, 'name': None, 'title': 'Untitled experience 2', 'type': 'Web Experience', 'typeKeywords': ['EXB Experience', 'JavaScript', 'Ready To Use', 'status: Draft', 'version:1.10.0', 'Web Application', 'Web Experience', 'Web Mapping Application', 'Web Page', 'Web Site'], 'description': None, 'tags': [], 'snippet': None, 'thumbnail': None, 'documentation': None, 'extent': [], 'categories': [], 'spatialReference': None, 'accessInformation': None, 'licenseInfo': None, 'culture': 'en-us', 'properties': None, 'advancedSettings': None, 'url': None, 'proxyFilter': None, 'access': 'private', 'size': 1490, 'subInfo': 0, 'appCategories': [], 'industries': [], 'languages': [], 'largeThumbnail': None, 'banner': None, 'screenshots': [], 'listed': False, 'ownerFolder': None, 'protected': False, 'commentsEnabled': False, 'numComments': 0, 'numRatings': 0, 'avgRating': 0, 'numViews': 0, 'itemControl': 'admin', 'scoreCompleteness': 16, 'groupDesignations': None, 'lastViewed': -1}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 05:23:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1377430#M9611</guid>
      <dc:creator>hlindemann</dc:creator>
      <dc:date>2024-02-02T05:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1487899#M10143</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/681236"&gt;@ResourceAnalyst&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am experiencing the same issue with &lt;STRONG&gt;clone_items()&lt;/STRONG&gt; on Portal 11.1.&lt;/P&gt;&lt;P&gt;Did you ever find a solution? Thanks in advance for any suggestions!&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jun 2024 15:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1487899#M10143</guid>
      <dc:creator>BBowers_napacounty</dc:creator>
      <dc:date>2024-06-09T15:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1537407#M10646</link>
      <description>&lt;P&gt;I have talked to ESRI support and their are known bugs for cloning all apps with the clone.items() function. I have been told there is no current work around or other functions that could be used on cloning Apps and these bugs will be addressed in the ArcGIS API Python 2.4 release. Which they do not have an official release date for but possibly October 2024.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;To me this makes all the documentation out there on cloning items irrelevant.&amp;nbsp;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/cloning-content/" target="_blank"&gt;https://developers.arcgis.com/python/guide/cloning-content/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://developers.arcgis.com/python/guide/cloning-complex-apps/#web-experiences" target="_blank"&gt;https://developers.arcgis.com/python/guide/cloning-complex-apps/#web-experiences&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Sep 2024 16:17:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1537407#M10646</guid>
      <dc:creator>KeitherPerkinsWSB</dc:creator>
      <dc:date>2024-09-11T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: clone_items 'NoneType' ojbect has no attribute 'metadata'</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1654919#M11695</link>
      <description>&lt;P&gt;I am getting a similar issue after I clone an item, I use:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;SPAN&gt;item_dst.&lt;/SPAN&gt;&lt;SPAN&gt;move&lt;/SPAN&gt;&lt;SPAN&gt;(folder_name)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;and I get the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Tra&lt;FONT color="#000000"&gt;ceback (most recent call last): &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1024, in &amp;lt;module&amp;gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; File "&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT color="#000000"&gt;&lt;A target="_blank"&gt;C:\GISData\ArcGISPro_PythonClone\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\__init__.py&lt;/A&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#000000"&gt;", line 1&lt;/FONT&gt;7232, in move &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; folder_id = self._gis.content.folders.get(folder=folder)._fid&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;AttributeError: 'NoneType' object has no attribute '_fid'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 17:37:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/clone-items-nonetype-ojbect-has-no-attribute/m-p/1654919#M11695</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2025-10-02T17:37:39Z</dc:date>
    </item>
  </channel>
</rss>

