Error getting length of file for upload during Synchronization

194
4
12-15-2020 06:02 PM
SailiTang1
New Contributor II

Hi,

 

I am using ArcGIS runtime SDK for .NET 100.5 to develop a WPF application. I am using this sample code https://developers.arcgis.com/net/latest/wpf/guide/sync-offline-edits.htm to synchronize the *.geodatabase. Most of time, it has been working well, but one of my users failed to sync his data today. He got an error message below:

SailiTang1_0-1608083729763.jpeg

I guess that this error was caused by the large offline geodatabase (*.geodatabase), but I am not sure. Does anyone have any idea about this error? This user’s offline geodatabase (*.geodatabase) is over 2GB. Is 2GB a large size for a offline geodatabase? Is there a size limit for a offline geodatabase (*.geodatabase) to do synchronization? Our feature service is running on ESRI ArcGIS online.

Thanks for your help.

Saili

Tags (1)
Reply
0 Kudos
4 Replies
JoeHershman
MVP Regular Contributor

In a portal implementation we have considerably larger offline data, so I do not know if there is a size limit.  The size of the data being processed would be associated to the number of changes, though, not the size of the actual offline replica.

When a Sync occurs what happens on upload is:

  • Runtime processes the database to generate a temporary delta database
  • Uploads the delta file to server using rest call (returns an identifier of file)
  • Make call to sync giving a location of the uploaded file via Rest

 

What you can do when the job fails to call job.ToJson() and log this.  This is a lot of the communication between server and client during the sync and may give more information.  As the message may not mean a whole lot

 

Reply
0 Kudos
SailiTang1
New Contributor II

Thank you so much for your explanations and suggestions. Sorry for the late reply. This user has been syncing his data successfully all the time, but I am not sure why now he couldn't do it. I will try to call job.ToJson() to see if I can find something. Thanks again.

Saili

Reply
0 Kudos
SailiTang1
New Contributor II

Hi Joe,

I called job.ToJson() when the job failed and got the following message. It looks like that delta database had been created, but uploading it was failed, right? The length of delta database file has an error, doesn't it? How can I fix it? Thanks for your help and Happy New Year!

Saili

SailiTang1_0-1609876108497.png

 

Reply
0 Kudos
JoeHershman
MVP Regular Contributor

I there possibly any type of virus scan or something else IT wise that could be happening on that folder that could lock the file?  Seems like for some reason it just fails accessing the file.  That's just a thought

Reply
0 Kudos