Hello,
I am trying to use the out of the box edit widget to create or edit features in an ArcGIS Online web app. Intermittently when creating new features the data isn't being committed to the database. This behaviour has been reported by many end-users. I have done some testing by repeating an identical process of creating a new feature many times and the success/failure appears to be random as far as I can tell. I have noticed that the save/delete/close buttons that used to be on the bottom of the attribute form are missing also (see attachment).
When it does fail the feature is still drawn on the map but no new rows are created in the database. The ghost feature cannot be clicked on or selected and if the page is refreshed will disappear. The below TypeError occurs whenever it fails however this is above my head to troubleshoot.
Editing in the web map yields similar results and a bad request error - Failed to load resource: the server responded with a status of 400 ()
The data is stored in oracle database and served as features services using AGS 10.7.1 (also occurred on AGS 10.4.1). See attachment for the edit widget config.
Can anyone please help me diagnose why this is occurring? Any insight greatly appreciated, many thanks in advance.
init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">115</SPAN> TypeError<SPAN class="punctuation token">:</SPAN> Cannot read property <SPAN class="string token">'defaultSymbol'</SPAN> <SPAN class="keyword token">of</SPAN> <SPAN class="keyword token">null</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_createGraphic <SPAN class="punctuation token">(</SPAN>Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">29</SPAN><SPAN class="punctuation token">)</SPAN>
at Object<SPAN class="punctuation token">.</SPAN><SPAN class="operator token"><</SPAN>anonymous<SPAN class="operator token">></SPAN> <SPAN class="punctuation token">(</SPAN>Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">17</SPAN><SPAN class="punctuation token">)</SPAN>
at init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">64</SPAN>
at Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">45</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_successHandler <SPAN class="punctuation token">(</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2330</SPAN><SPAN class="punctuation token">)</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_simplifyHandler <SPAN class="punctuation token">(</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2716</SPAN><SPAN class="punctuation token">)</SPAN>
at init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">64</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>load <SPAN class="punctuation token">(</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2716</SPAN><SPAN class="punctuation token">)</SPAN>
at init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">973</SPAN>
at c <SPAN class="punctuation token">(</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">104</SPAN><SPAN class="punctuation token">)</SPAN> "TypeError<SPAN class="punctuation token">:</SPAN> Cannot read property <SPAN class="string token">'defaultSymbol'</SPAN> <SPAN class="keyword token">of</SPAN> <SPAN class="keyword token">null</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_createGraphic <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>qgsp<SPAN class="punctuation token">.</SPAN>maps<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN>apps<SPAN class="operator token">/</SPAN>webappbuilder<SPAN class="operator token">/</SPAN>stemapp<SPAN class="operator token">/</SPAN>widgets<SPAN class="operator token">/</SPAN>Edit<SPAN class="operator token">/</SPAN>Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">29</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">332</SPAN><SPAN class="punctuation token">)</SPAN>
at Object<SPAN class="punctuation token">.</SPAN><SPAN class="operator token"><</SPAN>anonymous<SPAN class="operator token">></SPAN> <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>qgsp<SPAN class="punctuation token">.</SPAN>maps<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN>apps<SPAN class="operator token">/</SPAN>webappbuilder<SPAN class="operator token">/</SPAN>stemapp<SPAN class="operator token">/</SPAN>widgets<SPAN class="operator token">/</SPAN>Edit<SPAN class="operator token">/</SPAN>Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">17</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">197</SPAN><SPAN class="punctuation token">)</SPAN>
at https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">64</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">337</SPAN>
at https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>qgsp<SPAN class="punctuation token">.</SPAN>maps<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN>apps<SPAN class="operator token">/</SPAN>webappbuilder<SPAN class="operator token">/</SPAN>stemapp<SPAN class="operator token">/</SPAN>widgets<SPAN class="operator token">/</SPAN>Edit<SPAN class="operator token">/</SPAN>Widget<SPAN class="punctuation token">.</SPAN>js<SPAN class="operator token">?</SPAN>wab_dv<SPAN class="operator token">=</SPAN><SPAN class="number token">2.16</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">45</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">393</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_successHandler <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2330</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">478</SPAN><SPAN class="punctuation token">)</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>_simplifyHandler <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2716</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">343</SPAN><SPAN class="punctuation token">)</SPAN>
at https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">64</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">337</SPAN>
at Object<SPAN class="punctuation token">.</SPAN>load <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">2716</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">199</SPAN><SPAN class="punctuation token">)</SPAN>
at https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">973</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">38</SPAN>
at c <SPAN class="punctuation token">(</SPAN>https<SPAN class="punctuation token">:</SPAN><SPAN class="operator token">/</SPAN><SPAN class="operator token">/</SPAN>js<SPAN class="punctuation token">.</SPAN>arcgis<SPAN class="punctuation token">.</SPAN>com<SPAN class="operator token">/</SPAN><SPAN class="number token">3.32</SPAN><SPAN class="operator token">/</SPAN>init<SPAN class="punctuation token">.</SPAN>js<SPAN class="punctuation token">:</SPAN><SPAN class="number token">104</SPAN><SPAN class="punctuation token">:</SPAN><SPAN class="number token">350</SPAN><SPAN class="punctuation token">)</SPAN>"<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>