An FYI to the Runtime dev teams... Getting an odd SQLite error when trying to use sync replicas. This has also been observed in Collector:
A fix in Runtime is probably needed. Exception below:
Esri.ArcGISRuntime.ArcGISRuntimeException: SQLite constraint violation: SQLite: 19
Abort due to constraint violation
- at Esri.ArcGISRuntime.ArcGISException.HandleCoreError (RuntimeCoreNet.GeneratedWrappers.CoreError error, System.Boolean throwException)
- at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError (System.IntPtr errorHandle, System.Boolean throwOnFailure, System.Runtime.InteropServices.GCHandle wrapperHandle)
- at RuntimeCoreNet.GeneratedWrappers.CoreArcGISMapImageSublayer.get_Table ()
- at Esri.ArcGISRuntime.Mapping.ArcGISMapImageSublayer.<get_Table>b__43_0 (RuntimeCoreNet.GeneratedWrappers.CoreArcGISMapImageSublayer c)
- at Esri.ArcGISRuntime.Internal.RuntimeLazy.Make[T,U] (T& target, System.Boolean& initialized, System.Object locker, U factoryParam, System.Func<T,T1>[T,TResult] factory)
- at Esri.ArcGISRuntime.Internal.RuntimeLazy.Get[T,U] (T& target, System.Boolean& initialized, System.Object locker, U factoryParam, System.Func<T,T1>[T,TResult] factory)
- at Esri.ArcGISRuntime.Mapping.ArcGISMapImageSublayer.get_Table ()
Jeremy,
Could you try setting up the SyncDirection (Property SyncDirection (arcgis.com)) to see if the error is happening on sync "Upload" or "Download"?
Getting that same error but when trying to submit a record in fieldmaps, not savvy enough to know the steps to set up that sync direction you suggested but it says "unable to submit" before the rest of the error message for what that's worth.