Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError:Cannot read property 'setAttribute' of null #548

Closed
bmwagehoft opened this issue Feb 5, 2018 · 3 comments
Closed

TypeError:Cannot read property 'setAttribute' of null #548

bmwagehoft opened this issue Feb 5, 2018 · 3 comments

Comments

@bmwagehoft
Copy link

I apologize if this isn't the right place for this, have been frustrated with my lack of knowledge in this area when working with the ESRI webapp templates.

After creating a GeoForm using the AGOL GeoForm Builder, the application fails to load and is returning the following:

TypeError: Cannot read property 'setAttribute' of null
at Object.b.set (init.js:161)
at Object._createFormElements (main.js:1126)
at Object. (main.js:585)
at init.js:63
at Object.forEach (init.js:71)
at Object._createForm (main.js:564)
at Object. (main.js:1567)
at init.js:63
at c (init.js:103)
at d (init.js:103) "TypeError: Cannot read property 'setAttribute' of null
at Object.b.set (https://js.arcgis.com/3.23/init.js:161:49)
at Object._createFormElements (http://msi.maps.arcgis.com/apps/GeoForm/js/main.js:1126:17)
at Object. (http://msi.maps.arcgis.com/apps/GeoForm/js/main.js:585:14)
at https://js.arcgis.com/3.23/init.js:63:337
at Object.forEach (https://js.arcgis.com/3.23/init.js:71:19)
at Object._createForm (http://msi.maps.arcgis.com/apps/GeoForm/js/main.js:564:13)
at Object. (http://msi.maps.arcgis.com/apps/GeoForm/js/main.js:1567:18)
at https://js.arcgis.com/3.23/init.js:63:337
at c (https://js.arcgis.com/3.23/init.js:103:393)
at d (https://js.arcgis.com/3.23/init.js:103:182)"

I am trying to build a GeoForm that will allow users to digitize logs of water main break locations into a point dataset. I have pointed the geoform to a hosted feature layer with several fields. Several of the fields have coded domains and all fields allow NULL values. I have a feature template setup with default field entries based on my domains.

Any help with this issue would be appreciated.

Thanks.

@driskull
Copy link
Member

driskull commented Feb 5, 2018

Did you figure it out @bmwagehoft?

@bmwagehoft
Copy link
Author

ESRI Support and I narrowed it down to a field in my hosted feature layer having a DATE field type. After disabling that field my GeoForm loads perfectly. I believe another user had this error recently, #524. Not sure if a solution was ever arrived at, but for now I will just forgo using that specific field. Thanks @driskull.

@driskull
Copy link
Member

driskull commented Feb 6, 2018

cool. thanks. Just wanted to make sure everything is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants