Select to view content in your preferred language

Auto update defined fields for hosted views with Sync enabled

208
0
05-16-2024 06:47 PM
Status: Open
LindsayRaabe_FPCWA
Regular Contributor II

When creating Hosted Views of feature services and enabling them for offline use in Field Maps, if you don't include the Editor and EditDate fields in the defined fields setting, then when offline and trying to submit edits, you receive an "Unable to submit" error (SQLite constraint violation.: SQLite: 19). 

I've made this error a couple of times over the years where I've either excluded or only included one of the 2 fields (intentionally, thinking that the user didn't need that info). And when this happens but you're working Online, it doesn't cause any issues. 

IDEA: When enabling the "Sync" option on a Hosted Views Settings page, automatically include the Editor and Edit Date fields in the define fields setting.