Survey123 - Failed to submit - Cannot read properties of null (reading 'closest')

289
3
01-06-2022 09:45 AM
GISUser74305830
New Contributor III

Situation:

  • Survey123 form embedded in an ArcGIS Dashboard
  • Form reads to a hosted table (Projects)
  • Projects contains 2 related tables (Funding) and (Changes)

Issue:

  • I can submit a record IF I supply a related record in one of the related tables via a repeat
  • I cannot submit a record if I do not wish to supply a related record
  • I get the following error - Failed to submit - Cannot read properties of null (reading 'closest')
  • I've attached a screenshot of the error and the XLS form used for the survey
0 Kudos
3 Replies
ZacharySutherby
Esri Regular Contributor

Hello @GISUser74305830

It looks like the XLSForm provided is using a submission URL and the survey may have been built based on an existing feature service. Just to confirm are the relationships between the parent layer and related tables 1:M based on globalID to GUID? Please see this documentation for more information. 

Thank you,
Zach
0 Kudos
GISUser74305830
New Contributor III

Zachary - i solved it. I needed to populate the Relevant field for the repeats. 

 

GISUser74305830_0-1642181203040.png

 

DrewMoffitt
New Contributor II

This did the trick! Like your example, I had to populate the relevant fields for ALL the fields within the repeats, and not just the repeats like I had.

 

Thanks for posting this solution!

0 Kudos