AGOL edit widget intermittently fails to save new features

1179
4
06-24-2020 08:13 AM
GinoMellino
Occasional Contributor

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.js:115 TypeError: Cannot read property 'defaultSymbol' of null
    at Object._createGraphic (Widget.js?wab_dv=2.16:29)
    at Object.<anonymous> (Widget.js?wab_dv=2.16:17)
    at init.js:64
    at Widget.js?wab_dv=2.16:45
    at Object._successHandler (init.js:2330)
    at Object._simplifyHandler (init.js:2716)
    at init.js:64
    at Object.load (init.js:2716)
    at init.js:973
    at c (init.js:104) "TypeError: Cannot read property 'defaultSymbol' of null
    at Object._createGraphic (https://qgsp.maps.arcgis.com/apps/webappbuilder/stemapp/widgets/Edit/Widget.js?wab_dv=2.16:29:332)
    at Object.<anonymous> (https://qgsp.maps.arcgis.com/apps/webappbuilder/stemapp/widgets/Edit/Widget.js?wab_dv=2.16:17:197)
    at https://js.arcgis.com/3.32/init.js:64:337
    at https://qgsp.maps.arcgis.com/apps/webappbuilder/stemapp/widgets/Edit/Widget.js?wab_dv=2.16:45:393
    at Object._successHandler (https://js.arcgis.com/3.32/init.js:2330:478)
    at Object._simplifyHandler (https://js.arcgis.com/3.32/init.js:2716:343)
    at https://js.arcgis.com/3.32/init.js:64:337
    at Object.load (https://js.arcgis.com/3.32/init.js:2716:199)
    at https://js.arcgis.com/3.32/init.js:973:38
    at c (https://js.arcgis.com/3.32/init.js:104:350)"‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
0 Kudos
4 Replies
GinoMellino
Occasional Contributor

FYI for anyone interested. 

This was resolved by republishing the services with updated feature templates.

KristalWalsh
Occasional Contributor II

I have had the same problem but on both sides..the ArcGIS online editing side and also when using the Smart Editor app. My feature layers were created within the last year from feature templates and this only just started to occur recently. Can you comment any further? I have quite a few hosted feature layers that would need to be republished but I'd like to know the cause. Thank you!

Kristal Walsh, Florida Fish and Wildlife
Office of Conservation Planning
0 Kudos
GinoMellino
Occasional Contributor

Hi Kristal,

Apologies for the late reply - unfortunately I don't think I can be of any help as I am not sure what was wrong in the first place. I am not able to access the ArcGIS server myself (it is handled by an administrative team) to troubleshoot further and am not privy to much/any information about maintenance/changes which may have occurred that could have caused this issue. I can only assume that the type error indicates that there had become some disconnect between the service and the web map which was resolved when the service was refreshed. Fortunately for me, it was only the one service that was playing up so it was easy to resolve by republishing. I hope you are able to resolve your issues without going through the rigmarole of republishing all of your services. 

Cheers, 

Gino

0 Kudos
KristalWalsh
Occasional Contributor II

Thanks, Gino and yes, oddly enough, I had to republish only two feature layers so far. Additional inspection into the layer before republishing revealed that fields had been dropped also. So this was just the easiest way to go. Hopefully, it was just a fluke. Kristal

Kristal Walsh, Florida Fish and Wildlife
Office of Conservation Planning
0 Kudos