SQLite constraint error

636
2
02-01-2022 09:58 AM
JeremyBridges
Occasional Contributor

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:

https://community.esri.com/t5/arcgis-collector-questions/strange-error-with-sqlite/m-p/1096824/highl...

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 ()

Tags (2)
0 Kudos
2 Replies
TonyWakim
Esri Contributor

Jeremy,

Could you try setting up the SyncDirection (Property SyncDirection (arcgis.com)) to see if the error is happening on sync "Upload" or "Download"?

0 Kudos
MikePowers
New Contributor

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.

0 Kudos