<?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 Image Error- Cannot set properties of undefined (setting 'referedIds') in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1326360#M8224</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My organization and I keep running into the attatched error ("cannot set properties of undefined setting 'referedlds') when trying to select an image source in an EB. Does anyone know a solution?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 13:31:41 GMT</pubDate>
    <dc:creator>JosephTaubert_TKDA</dc:creator>
    <dc:date>2023-09-07T13:31:41Z</dc:date>
    <item>
      <title>Image Error- Cannot set properties of undefined (setting 'referedIds')</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1326360#M8224</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My organization and I keep running into the attatched error ("cannot set properties of undefined setting 'referedlds') when trying to select an image source in an EB. Does anyone know a solution?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 13:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1326360#M8224</guid>
      <dc:creator>JosephTaubert_TKDA</dc:creator>
      <dc:date>2023-09-07T13:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Image Error- Cannot set properties of undefined (setting 'referedIds')</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1326656#M8236</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/558807"&gt;@JosephTaubert_TKDA&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks quite odd. Do you have any specific steps to reproduce this issue, or any sample data/app?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 02:23:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1326656#M8236</guid>
      <dc:creator>TonghuiMing</dc:creator>
      <dc:date>2023-09-08T02:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Image Error- Cannot set properties of undefined (setting 'referedIds')</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1361387#M9920</link>
      <description>&lt;P&gt;I am having an identical issue. It seems to have begun when I duplicated an entire page and sought to edit the images within the duplicated page. Now this error is occurring when I am attempting to edit any of the images across all of the pages in my experience builder app. Any help troubleshooting this would be much appreciated!!!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 14:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1361387#M9920</guid>
      <dc:creator>EricDFournier</dc:creator>
      <dc:date>2023-12-15T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Image Error- Cannot set properties of undefined (setting 'referedIds')</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1490495#M13066</link>
      <description>&lt;P&gt;I recently ran into this same error (Cannot set properties of undefined (setting 'referedIds')) when setting the source for any image widget or button image.&amp;nbsp; Turned out to be a corrupt image widget.&amp;nbsp; After you find the corrupt image widget, delete it.&lt;/P&gt;&lt;P&gt;If you have a few amount of recently added images, you could go through each one in EXB, delete it, test if you can set the source for another image widget.&amp;nbsp; If you can, then you found the culprit.&amp;nbsp; If not, hit undo and try the next image.&lt;/P&gt;&lt;P&gt;In our case, we had too many images and pages, therefore the following steps were done to figure out the culprit image:&lt;/P&gt;&lt;P&gt;1. Inspect F12 Developer Tools Console and find the culprit Image key:&lt;/P&gt;&lt;P data-unlink="true"&gt;F12 developer tools Console error pointed me towards&amp;nbsp;https://myportal/portal/apps/experiencebuilder/jimu-for-builder/index.js&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Object.keys(o).forEach((e=&amp;gt;{
    o[e].referedIds = [];
    const t = o[e].originId;
    t !== e &amp;amp;&amp;amp; (i[t] ? i[t].referedIds.push(e) : (i[t] = Object.assign({}, o[t]),
    i[t].referedIds = [e]))
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I set a breakpoint at line 1 and inspected the 'o' object, which is JSON object containing a bunch of images.&amp;nbsp; The first key (4512369854) in my object had a value of undefined:&lt;/P&gt;&lt;P&gt;o = {4512369854: undefined, 8759631578: {originalName:..}&lt;/P&gt;&lt;P&gt;Therefore, the code was trying to access the referedIds property of an undefined object.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Okay, next step is how to relate this key (4512369854) to the culprit image in EXB.&lt;/P&gt;&lt;P&gt;I used some python in Pro to grab the EXB app JSON:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;app_itemid = '&amp;lt;enter your EXB item id here&amp;gt;'
app_item = gis.content.get(app_itemid)
app_data = app_item.get_data()
app_data&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you're still with me.&amp;nbsp; I then copied the app_data (app JSON) over to Notepad and searched for the key (4512369854), which was tied to widget_3728, which had a label of Image 593.&amp;nbsp; You will have a different widget and label than mine.&amp;nbsp; Now that you know it is Image 593 causing problems, go over to EXB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. In EXB&lt;/P&gt;&lt;P&gt;Click on each page in your EXB and search for Image 593.&amp;nbsp; Once you find it, delete it.&amp;nbsp; You can then re-create it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 13:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/image-error-cannot-set-properties-of-undefined/m-p/1490495#M13066</guid>
      <dc:creator>SG-1</dc:creator>
      <dc:date>2024-06-12T13:43:33Z</dc:date>
    </item>
  </channel>
</rss>

