<?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: 'Could not identify file' updating group thumbnail from URL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592732#M11209</link>
    <description>&lt;P&gt;Yep - I just opened ESRI Case#&lt;SPAN&gt;03852350.&amp;nbsp; &amp;nbsp;I'll post back here if anything comes out of it&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Mar 2025 14:32:02 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2025-03-06T14:32:02Z</dc:date>
    <item>
      <title>'Could not identify file' updating group thumbnail from URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592035#M11200</link>
      <description>&lt;P&gt;This may look like a &lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-item-thumbnail/m-p/1591970#M11198" target="_self"&gt;duplicate&lt;/A&gt; post, which &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;&amp;nbsp;solved. But although that solution worked for updating&amp;nbsp;&lt;EM&gt;item&amp;nbsp;&lt;/EM&gt;thumbnails&lt;EM&gt;,&amp;nbsp;&lt;/EM&gt;my script still fails when trying to update &lt;EM&gt;group&lt;/EM&gt; thumbnails.&amp;nbsp; Unfortunately there appears to be no equivalent "update_thumbnail" method for the group object.&amp;nbsp; I updated my test script to target a group:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# To recreate problem
# 1. Update the GROUP_ID variable below to an ArcGIS online group id that you own
# 2. Copy this entire script file and paste it into the ArcGIS Pro (make sure you are signed in)python analysis window, hit enter twice
# 3. Enter run_test()

GROUP_ID = 'e3fb48baf4834208bb545894c3fb7e6a'

from arcgis.gis import GIS
import requests
import os 

def test_upload_as_thumbnail (group, path):
    try:
        group.update(thumbnail = path)
        print (f"Upload {path} to {group.id} as thumbnail succeeded")
    except Exception as ex:
        print (f"Upload {path} to {group.id} as thumbnail failed: {str(ex)}")
    return

def test_download (url):
    if url.lower().startswith('http'):
        try:
            requests.get(url).content
            print (f"Download {url} succeeded")
        except Exception as ex:
            print (f"Download {url} failed: {str(ex)}")
    return

def run_test():
    gis = GIS('pro')
    for url in ['http://maps.fieldmuseum.org/apps/ROWHWG/icons/FeatureLayer.png',             # this one works
                'https://rightofway.erc.uic.edu/wp-content/uploads/FeatureLayer_600_400.png', # this one fails
                'https://rightofway.erc.uic.edu/wp-content/uploads/FeatureLayer.png']:        # this one fails
        test_download (url)
        test_upload_as_thumbnail(gis.groups.get(GROUP_ID), url)


&lt;/LI-CODE&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>Tue, 04 Mar 2025 21:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592035#M11200</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2025-03-04T21:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'Could not identify file' updating group thumbnail from URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592296#M11202</link>
      <description>&lt;P&gt;You should probably report this one&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 16:23:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592296#M11202</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-03-05T16:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: 'Could not identify file' updating group thumbnail from URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592732#M11209</link>
      <description>&lt;P&gt;Yep - I just opened ESRI Case#&lt;SPAN&gt;03852350.&amp;nbsp; &amp;nbsp;I'll post back here if anything comes out of it&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 14:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1592732#M11209</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2025-03-06T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: 'Could not identify file' updating group thumbnail from URL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1607395#M11330</link>
      <description>&lt;P&gt;ESRI support basically punted on this.&amp;nbsp; I was able to work around the problem by adding code to download the images to the local file system then doing the upload from there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2025 19:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/could-not-identify-file-updating-group-thumbnail/m-p/1607395#M11330</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2025-04-18T19:01:33Z</dc:date>
    </item>
  </channel>
</rss>

