AnsweredAssumed Answered

Attachments Issue

Question asked by azatrain on May 16, 2017
Latest reply on Jun 6, 2017 by azatrain

I'm writing a Xamarin Forms app that contains a tool which allows the user to add attachments to a point feature class within a SQLite geodatabase generated from a syncable feature service.  If the user adds multiple attachments (i.e more than 5) between syncs back to the feature service the sync process fails with the following error:

 

Failed to sync geodatabase: Error in uploading item part icda5bb8a-3bd4-4d68-82c4-87d9eb277c7a

  at Esri.ArcGISRuntime.Http.ArcGISHttpClientHandler+ArcGISClientHandlerInternal+<SendAsync>d__13.MoveNext () [0x00825] in <687a544c38e8410dbac0acfc0843ba7e>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Net.Http.HttpClient+<SendAsyncWorker>c__async0.MoveNext () [0x000f3] in <33125f85abf045418d5a40b4ae0d9bb5>:0
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8c304e4006094a46a7950338a3b3cb5d>:0
  at Esri.ArcGISRuntime.Internal.RequestRequiredHandler+<IssueRequestAndRespond>d__14.MoveNext () [0x005ae] in <687a544c38e8410dbac0acfc0843ba7e>:0

 

I am able to sync less than 5 attachments successfully however.  5 is not a hard and fast limit though, as I've seen it fail with 2 or 3 from time to time.  I've tested this on Windows, iOS, and Android devices against two different feature services and get the same error.  Is anyone aware of any bugs or limitations with respect to syncing data with associated attachments?  Are there any workarounds?

 

Thanks ...

Outcomes