<?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: metadata thumbnails in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244380#M66360</link>
    <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_self"&gt;Metadata documentation&lt;/A&gt; shows setting content equal to, not putting in parrens.&lt;/P&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;tgt_item_md.thumbnailUri = thumbnailImage&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 20:22:01 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2022-12-29T20:22:01Z</dc:date>
    <item>
      <title>metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244332#M66356</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;Trying to assign thumbnail images to existing FGCD metadata of feature classes in a geodatabase.&amp;nbsp; The thumbnail images are in .jpg format and are on a local drive with a prefix matching the name of the feature class (the gdb is also on the local drive).&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp; feature class is Zip_Code_Tabulation_Areas and corresponding thumbnail image is Zip_Code_Tabulation_Areas_thumbnail.jpg&lt;/P&gt;&lt;P&gt;Trying to follow the documentation from &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;os&lt;BR /&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;env&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;overwriteOutput&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;BR /&gt;from&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;metadata&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;as&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;md&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;#&amp;nbsp;set the workspace&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;env&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;workspace&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"D:\gisdata\rigis_download\rigis_services_SPF_2023.gdb"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;#&amp;nbsp;create&amp;nbsp;the&amp;nbsp;list&amp;nbsp;of&amp;nbsp;feature&amp;nbsp;classes&amp;nbsp;within&amp;nbsp;the&amp;nbsp;local&amp;nbsp;geodatabase&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;fc_list&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;ListFeatureClasses&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;#&amp;nbsp;iterate&amp;nbsp;through&amp;nbsp;each&amp;nbsp;feature&amp;nbsp;class&amp;nbsp;to&amp;nbsp;assign&amp;nbsp;a&amp;nbsp;thumbnail&amp;nbsp;to&amp;nbsp;the&amp;nbsp;metadata&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;for&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;each&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;fc_list&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;try&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'the&amp;nbsp;feature&amp;nbsp;class&amp;nbsp;is&amp;nbsp;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;each&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;thumbnailImage&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;r"D:\gisdata\rigis_download\thumbnails"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"\\"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;each&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;"_thumbnail.jpg"&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'the&amp;nbsp;thumbnail&amp;nbsp;is&amp;nbsp;'&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;+&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;thumbnailImage&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;tgt_item_md&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;md&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;Metadata&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;each&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;tgt_item_md&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;thumbnailUri&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;thumbnailImage&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;tgt_item_md&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;save&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;except&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'this&amp;nbsp;did&amp;nbsp;not&amp;nbsp;work'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;'done'&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It never works for any of the feature classes and sometimes actually deletes the jpgs from the directory all together. Error is:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;Traceback&amp;nbsp;(most&amp;nbsp;recent&amp;nbsp;call&amp;nbsp;last):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;File&amp;nbsp;"&amp;lt;interactive&amp;nbsp;input&amp;gt;",&amp;nbsp;line&amp;nbsp;1,&amp;nbsp;in&amp;nbsp;&amp;lt;module&amp;gt;&lt;BR /&gt;TypeError:&amp;nbsp;'NoneType'&amp;nbsp;object&amp;nbsp;is&amp;nbsp;not&amp;nbsp;callable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Tried multiple variations of what I ~think~ is the critical piece to no avail:&lt;/P&gt;&lt;P&gt;tgt_item_md.thumbnailUri(thumbnailImage)&lt;/P&gt;&lt;P&gt;tgt_item_md.thumbnailUri = thumbnailImage&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I "think" it may be because the variable thumbnailImage is just a string, and not the image itself?&amp;nbsp; I am not proficient enough in python to figure out how to create a variable of the actual image?&lt;/P&gt;&lt;P&gt;Although the documentation implies it can be a path as a string:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;thumbnailUri&lt;DIV class=""&gt;(Read and Write)&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;A local or network path, or a URL, to a graphic file that describes and helps to identify the item. Derived from the &lt;SPAN class=""&gt;Thumbnail&lt;/SPAN&gt; that is extracted from the item's metadata. When setting this value, if a URL is provided, the identified file will be downloaded and incorporated into the item’s metadata.&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;String&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tgt_item_md.isReadOnly returns False so the metadata should be writeable.&lt;/P&gt;&lt;P&gt;Thank you for any help.&amp;nbsp; I am probably missing something easy.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:49:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244332#M66356</guid>
      <dc:creator>compass_cartographic</dc:creator>
      <dc:date>2022-12-29T18:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244380#M66360</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/metadata/metadata-class.htm" target="_self"&gt;Metadata documentation&lt;/A&gt; shows setting content equal to, not putting in parrens.&lt;/P&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;tgt_item_md.thumbnailUri = thumbnailImage&lt;/LI-CODE&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 20:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244380#M66360</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-29T20:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244384#M66362</link>
      <description>&lt;P&gt;Thank you - I have already tried that, but will try again...&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 20:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244384#M66362</guid>
      <dc:creator>compass_cartographic</dc:creator>
      <dc:date>2022-12-29T20:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244396#M66364</link>
      <description>&lt;P&gt;Might want to make sure you have a copy of all the images.&amp;nbsp; "Most" of the time when it sucessfully updates the thumbnail, it deletes the photo from the source location.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 20:45:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244396#M66364</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-29T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244413#M66365</link>
      <description>&lt;P&gt;I have reloaded all the .jpgs to ensure the directory contains each one.&amp;nbsp; Re ran with&lt;/P&gt;&lt;PRE&gt;tgt_item_md.thumbnailUri = thumbnailImage&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of the jpgs disappeared again, but for those that disappeared, they still do not show up in the metadata when I view it (I forgot to mention I am using Pro 3.0).&amp;nbsp; Tried running the script in both pyscripter as a standalone script, and from within a Pro Jupyter Notebook.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 21:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244413#M66365</guid>
      <dc:creator>compass_cartographic</dc:creator>
      <dc:date>2022-12-29T21:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244453#M66366</link>
      <description>&lt;P&gt;I have upgraded my Pro 3.0 to Pro 2.9.3 as that is the last version that didn't give me tons of issues (especially with popups and attachments), so was testing in Stand Alone IDLE 3.7.11.&lt;/P&gt;&lt;P&gt;Just tried on my other box with Pro 3.0.3 on it, and ran in a Notebook.&amp;nbsp; Seems to be working as expected.&lt;/P&gt;&lt;P&gt;I did add a check to make sure the jpg is there before adding it, as if not, it will fail at some point, and have to re-copy all the jpegs again to run.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_0-1672354838979.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59507i10D874F131C3467E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_0-1672354838979.png" alt="RhettZufelt_0-1672354838979.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not sure where/how you are looking at the Thumbnails, but good old Catalog shows them as all being updated:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_1-1672354943084.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59508iB3C1453839BEFC56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_1-1672354943084.png" alt="RhettZufelt_1-1672354943084.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I do make sure I don't have Map/Pro/Catalog open and connected to the workspace so I don't have to deal with lock issues.&lt;/P&gt;&lt;P&gt;Also, can confirm that all images that were successfully copied to the thumbnail are deleted from the source folder.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 23:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244453#M66366</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2022-12-29T23:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244593#M66371</link>
      <description>&lt;P&gt;Thank you so much for helping!&amp;nbsp; Have no real idea what resolved the problem as nothing was working when I shut down last night, but this morning when I rebooted my machine, the thumbnails were present in the metadata.&amp;nbsp; Everything seems to have worked!&amp;nbsp; Very mysterious and frustrating.&amp;nbsp; But at least I know the code I've been working with is correct and for this I am grateful!&amp;nbsp; Thanks again - I really appreciate your time!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 17:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1244593#M66371</guid>
      <dc:creator>compass_cartographic</dc:creator>
      <dc:date>2022-12-30T17:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: metadata thumbnails</title>
      <link>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1486094#M70737</link>
      <description>&lt;P&gt;I had a similar issue same as&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/525062"&gt;@compass_cartographic&lt;/a&gt;&amp;nbsp; where I was getting the error message&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;TypeError:&amp;nbsp;'NoneType'&amp;nbsp;object&amp;nbsp;is&amp;nbsp;not&amp;nbsp;callable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;So I ended up at this thread&amp;nbsp; and the solution was to change&amp;nbsp;&lt;EM&gt;tgt_item_md.thumbnailUri(thumb_path)&lt;/EM&gt; to&amp;nbsp;&lt;EM&gt;tgt_item_md.thumbnailUri = thumb_path&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;I think the issue is a "chicken and egg" scenario. I had a folder with hundreds of datasets I wanted to insert a generic thumbnail into. How can you update something if&amp;nbsp;&lt;EM&gt;nothing exists?&amp;nbsp; &lt;/EM&gt;So when you want to update the thumbnail you need to&amp;nbsp;&lt;EM&gt;set&lt;/EM&gt; it rather than update an existing one when you are creating metadata for the first time.&lt;/P&gt;&lt;P&gt;I had a similar problem with update tags and summary. I had to run my code twice, first to import , that gave me something that &lt;EM&gt;exists&lt;/EM&gt; then I ran the code again to update it.&lt;/P&gt;&lt;P&gt;Here is my code for people to review.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcpy import metadata as md
"""
Comment out 3-lines as required to update metadata accordingly.
"""

# Set the standard-format metadata XML file's path
# This dataset I used ArcPro to populate with lots of generic metadata which I want to apply to all other datasets in the same folder.
src_file_path = r"C:\Project\Raster\CHIRPS2_0\AfricaMonthly\chirps-v2.0.1981.01.tif"

# Generic thumbnail image to be applied to all metadata
thumb_path = r'C:\Scratch\chirps.png'

# Set the current workspace
arcpy.env.workspace = r"C:\Project\Raster\CHIRPS2_0\AfricaMonthly"

# Get and print a list of GRIDs from the workspace
rasters = arcpy.ListRasters("*", "TIF")
for raster in rasters:
    if raster != "chirps-v2.0.1981.01.tif": # skip self
        print(raster)
        yr = raster[12:16]  # Extract year from file name
        mth = raster[17:19] # Extract month from file name
        tgt_item_md = md.Metadata(raster)
        if not tgt_item_md.isReadOnly:
            # These 3 lines import metadata and update thumbnail
            #tgt_item_md.importMetadata(src_file_path)
            #tgt_item_md.thumbnailUri = thumb_path
            #tgt_item_md.save()
            
            # These 3 lines update tags and summary which now EXIST due to the previous run of import.
            tgt_item_md.tags = tgt_item_md.tags + "," + yr
            tgt_item_md.summary = tgt_item_md.summary + " Year = " + yr + ", Month = " + mth
            tgt_item_md.save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 11:50:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/metadata-thumbnails/m-p/1486094#M70737</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2024-06-06T11:50:44Z</dc:date>
    </item>
  </channel>
</rss>

