I want to document a workaround for a very pesky bug I ran into today.
Bug description: Sync of an offline area fails when an editable layer includes any "in the last" time-based filter.
Platform: Android, Field Maps 25.1.0
Most similar known bug:
https://support.esri.com/en-us/bug/offline-map-areas-fail-to-sync-if-the-map-contains-a-da-bug-000149289
To recreate:
1. Publish a layer from ArcGIS Pro that has a Date field called "date".
2. Create an offline-ready web map containing the layer as editable, and apply any "in the last" filter. E.g. "in the last 12 hours". Interestingly, you can apply this filter to any date field, not just the field named "date", and trigger the same bug. For example, a CreationDate field.
3. Download an offline area, make some edits, and attempt to sync.
4. Sync fails, and edits are left in the "local changes" queue.. but they are still applied to the feature service.
Workaround:
1. Republish the layer, and name the date field anything but "date". Ex. "date_observed".
Offline areas will now sync with "in the last" filters applied, to any field.
2. "In the last filter" no longer causes sync to fail, edits applied as expected.
Thoughts:
ArcGIS Online will not allow you to create a field called "date". Attempting to publish a layer with a field called date from ArcGIS Pro should probably trigger a warning.
