<?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: Cannot read properties of undefined (reading 'indexOf') in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1357036#M53243</link>
    <description>&lt;P&gt;I noticed the same behavior when I got this error: the surveys randomly started working again a couple of hours later. Luckily, I have not had the error occur since, but agree that it would be great to get more information on this issue and how to avoid it going forward.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Dec 2023 18:36:26 GMT</pubDate>
    <dc:creator>ColinBergmann</dc:creator>
    <dc:date>2023-12-05T18:36:26Z</dc:date>
    <item>
      <title>Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1232034#M46056</link>
      <description>&lt;P&gt;I have an editing-mode Survey123 webform embedded in a dashboard that filters off of a category selector. About 1 in every 5 selections of a feature from the category selector the form fails to load:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JasonJordan00_0-1668554500438.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/56067i5ECCD8FD95AEA695/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JasonJordan00_0-1668554500438.png" alt="JasonJordan00_0-1668554500438.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;JasonJordan00_0-1668554500438.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The form seems to pop up for a split second before moving to the error.&lt;/P&gt;&lt;P&gt;I don't think it has anything to do with the attributes in the field because I can reload the same feature over and over and it will error out eventually. However reselecting the record will generally prompt it to load correctly. Its coming from a feature layer hosted in an SDE. Not seeing any error in Chrome developer tools. Anything I can try?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 23:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1232034#M46056</guid>
      <dc:creator>JasonJordan00</dc:creator>
      <dc:date>2022-11-15T23:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1288265#M49198</link>
      <description>&lt;P&gt;I'm getting the same intermittent error when editing in a webform, though with a feature service in AGOL created by Survey123 Connect.&lt;/P&gt;&lt;P&gt;Similarly not seeing any errors from the browser console.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 17:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1288265#M49198</guid>
      <dc:creator>CameronHDean</dc:creator>
      <dc:date>2023-05-11T17:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1314905#M50997</link>
      <description>&lt;P&gt;Hi, I'm getting the same issue with data from SDE. Anyone found a solution/workaround for this?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 03:42:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1314905#M50997</guid>
      <dc:creator>HarmondSantos1</dc:creator>
      <dc:date>2023-08-03T03:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1326469#M51591</link>
      <description>&lt;P&gt;I am getting the same error as well on 3 different surveys, all of which were working fine up until this point. There were no edits made to the survey between now and when it was working properly. Data is also from server service.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 16:30:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1326469#M51591</guid>
      <dc:creator>ColinBergmann</dc:creator>
      <dc:date>2023-09-07T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1356868#M53235</link>
      <description>&lt;P&gt;I am also receiving this error message in a survey I have embedded into a dashboard. The survey was working just fine when I was using it only a few days ago.&lt;/P&gt;&lt;P&gt;Likewise, I am also not seeing any errors from the browser console.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1356868#M53235</guid>
      <dc:creator>JacobWBrown</dc:creator>
      <dc:date>2023-12-05T15:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1356945#M53242</link>
      <description>&lt;P&gt;Now after 2 hours the survey is working again just as it did before. Would love to know if there's any way to avoid, or at least limit, this error from happening again in the future.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 17:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1356945#M53242</guid>
      <dc:creator>JacobWBrown</dc:creator>
      <dc:date>2023-12-05T17:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1357036#M53243</link>
      <description>&lt;P&gt;I noticed the same behavior when I got this error: the surveys randomly started working again a couple of hours later. Luckily, I have not had the error occur since, but agree that it would be great to get more information on this issue and how to avoid it going forward.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 18:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1357036#M53243</guid>
      <dc:creator>ColinBergmann</dc:creator>
      <dc:date>2023-12-05T18:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1501079#M57704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I experienced the same issue this morning (my feature service has a 1-M relationship with attachments on the related feature class, data in SDE, published on my Portal). I just restarted the service and everything started working again.&lt;/P&gt;&lt;P&gt;Let's see how long it last&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 15:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1501079#M57704</guid>
      <dc:creator>DominicRobergeIADOT</dc:creator>
      <dc:date>2024-07-03T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1523284#M58553</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Also have this message on pure ArcGIS online layer+related table...&lt;/P&gt;&lt;P&gt;Any Ideas? Thanks a lot.&lt;/P&gt;&lt;P&gt;Noam&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2024 04:54:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1523284#M58553</guid>
      <dc:creator>נועםעציוני</dc:creator>
      <dc:date>2024-08-18T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564036#M60331</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1213"&gt;@JamesTedrick&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/2929"&gt;@IsmaelChivite&lt;/a&gt;&amp;nbsp; - Would either of you have any advice on this topic?&amp;nbsp; There seems to be no answers to this thread yet, though it seems as though some folks experienced a resolution after some time.&amp;nbsp; I'm having this issue now, but mine is not resolving on its own.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a survey embedded in a dashboard (in edit mode) that has been running perfectly for 2 years now.&amp;nbsp; I recently had the need to add a related table to the hosted feature layer so I could add inspections to the features in the layer, which I found you can do via some python scripting in Notebook in ArcGIS Pro.&amp;nbsp; This seemed to work perfectly, until I discovered yesterday that my survey is now displaying the error "Cannot read properties of undefined (reading 'indexOf').&amp;nbsp; See screenshot below. I suspect this has something to do with the fact that there is now a related table associated with the hosted feature layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerBragg2_0-1733232469659.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120723i48AC81114B77BE2D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerBragg2_0-1733232469659.png" alt="TylerBragg2_0-1733232469659.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TylerBragg2_0-1733232469659.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Here's my URL for the embedded survey:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;"&lt;A href="https://survey123.arcgis.com/share/[itemid]?mode=edit&amp;amp;globalId={field/globalid}&amp;amp;version=latest" target="_blank"&gt;https://survey123.arcgis.com/share/[itemid]?mode=edit&amp;amp;globalId={field/globalid}&amp;amp;version=latest&lt;/A&gt;"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I've checked this syntax and it is correct (and it has been in place and working for a long time now).&amp;nbsp; I suspect this error has something to do with referencing the globalId now that there is another sublayer in the hosted feature layer, but I don't know for sure.&amp;nbsp; I can tell you that when I remove the "&lt;STRONG&gt;&amp;amp;globalId={field/globalid}&amp;amp;version=latest"&amp;nbsp;&lt;/STRONG&gt;from the URL, the survey displays properly, though it does give the message that editing is not possible because there is no reference to the globalId.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I think the key indicator for me is that this survey &amp;amp; dashboard have been operational for 2 years now with daily editing taking place and no issues.&amp;nbsp; It was only when I added the related table to the feature layer did the problem occur.&amp;nbsp; I think that helps point to the problem, I'm just not sure where to look (or what I'm looking for). Is it possible that the sublayer within the hosted feature layer needs to be identified within the globalId syntax (sublayer "0" is the feature class and sublayer "1" is the table), and is that even possible to make that distinction?&lt;/P&gt;&lt;P&gt;Any advice you can provide would be helpful for both me and the other folks who have been experiencing this problem.&amp;nbsp; I need to get this back up and running as quickly as possible for the folks relying on this in my office.&amp;nbsp; I'm happy to send you the xls form for the survey or anything else that would help diagnose this issue.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:30:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564036#M60331</guid>
      <dc:creator>TylerBragg2</dc:creator>
      <dc:date>2024-12-03T13:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564052#M60332</link>
      <description>&lt;P&gt;To follow up on this:&lt;/P&gt;&lt;P&gt;I reviewed what was happening in my dashboard when selecting a feature from the "List" widget using the Google Chrome Developer Tools and I'll put some screenshots below.&amp;nbsp; It begins all the queries of the feature service necessary to display the data in the embedded survey.&amp;nbsp; The images below are of the query performed immediately before the error message.&amp;nbsp; It runs through several queries of the feature service successfully, then it looks like it's querying the related table (FeatureServer/1) where the "ParentGuid = 'undefined'.&amp;nbsp; It then receives an error for invalid query parameters.&amp;nbsp; I'm not sure why or how to resolve this.&amp;nbsp; Maybe this will help shed some light on what's happening.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerBragg2_1-1733234833945.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120724iA7A87F11FF8300EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerBragg2_1-1733234833945.png" alt="TylerBragg2_1-1733234833945.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TylerBragg2_1-1733234833945.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TylerBragg2_2-1733234861590.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/120725iF576698B9F67E771/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TylerBragg2_2-1733234861590.png" alt="TylerBragg2_2-1733234861590.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TylerBragg2_2-1733234861590.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 14:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564052#M60332</guid>
      <dc:creator>TylerBragg2</dc:creator>
      <dc:date>2024-12-03T14:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot read properties of undefined (reading 'indexOf')</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564392#M60347</link>
      <description>&lt;P&gt;Posting another update to this - I have resolved my issue, though I'm not sure if it's applicable to the OP's issue nor would be considered a "solution" to this thread.&amp;nbsp; This is specifically dealing with the feature service with a related table, as some other users have commented above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To resolve my problem, I went to the item details page of the feature layer that contains the related table (the one to which my survey is connected).&amp;nbsp; I created a view layer from this original layer.&amp;nbsp; When creating the view layer, you'll have to option to choose which feature layers within the service are included in the view layer.&amp;nbsp; I "unchecked" the related table so as NOT to include it in the view layer, then proceeded with finalizing the view layer.&amp;nbsp; Once this was created, I opened the survey that is embedded in my dashboard in Survey123 Connect, opened the xls form, and modified the "submission_url" on the "settings" tab to point to the item ID of my new view layer (that doesn't include the related table).&amp;nbsp; Once I re-published this, the problem seems to be resolved.&amp;nbsp; I'm no longer receiving any errors and, when checking the activity using the Chrome Developer Tools, there are no further queries directed towards the related table.&lt;/P&gt;&lt;P&gt;This may not be a viable workaround for everyone, but it seems to have solved the issue with the erroneous query of the related table and is not producing errors.&amp;nbsp; I've also tested submission of the form and it seems to be working as expected.&amp;nbsp; Hope this helps someone else having this issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 21:11:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/cannot-read-properties-of-undefined-reading/m-p/1564392#M60347</guid>
      <dc:creator>TylerBragg2</dc:creator>
      <dc:date>2024-12-03T21:11:09Z</dc:date>
    </item>
  </channel>
</rss>

