AGSGDB generateGeodatabase fails (on large DBs?)

4272
4
06-03-2015 12:52 AM
KristofferStenersen
Occasional Contributor

Yesterday new iOS-clients were no longer able to do initial AGSGDB-offline-sync with our AGS server.

Runtime SDK throws the following error upon generateGeodatabaseWithParameters:

Error Domain=NSURLErrorDomain Code=-1100 "The requested URL was not found on this server." UserInfo=0x174c77100 {NSErrorFailingURLStringKey=http://xxxxx/MapServer/_ags_data%7B7D7A28CBA33E44DC9939B255BA521B5E%7D.geodatabase?token=mSynh8LuH0j...,

I could not find too much of interest AGS server logs, but windows event viewer had an interesting entry:

  w3wp.exe

  IIS APPPOOL\ArcGISWebAdaptorAppPool

  ArithmeticException

  Overflow or underflow in the arithmetic operation. 

  http://xxxxx/MapServer/_ags_data{E8151DFCCE0F4F22A34CF29C87D3DEAF}.geodatabase?token=mSynh8LuH0jBPn-...

  /arcgis/rest/directories/arcgisoutput/xxxxxMapServer/_ags_data{E8151DFCCE0F4F22A34CF29C87D3DEAF}.geodatabase

I did some testing and found that if I trimmed down the size of the initial sync-db by adding a filter to one of our feature classes (with a lot of large attachments), I was able to continue syncing. The arithmentic exception leads me to believe that this has to do with some variable getting an overflow storing the size of our offline gdb.  

Thus, if this is a bug, it does not really belong in the Runtime SDK, it´s probably somewhere in the sync-tool on the server side - old clients are still able to sync - I don´t believe this is a client side issue.

I don´t have the exatct number on how large the db has become, but I believe it is in the 0.5-1GB range.

Thanks,

Kristoffer

0 Kudos
4 Replies
DavidLednik
Occasional Contributor II

Hi Kristoffer,

Could you check the version of your arcgis server please.

regards,

David

0 Kudos
KristofferStenersen
Occasional Contributor

Hi David, thanks

Server version is 10.22.

0 Kudos
MichaelDavis3
Occasional Contributor III

See this thread:

Collector App Sync - SEVERE ERROR.

Think you are experiencing the same bug.

DiveshGoyal
Esri Regular Contributor

Have you tried installing the ArcGIS 10.2.2 for (Desktop, Engine, Server) Geodatabase and Feature Service Sync Optimization Patch ​ ? See if that helps.

Also, it looks like the server generated the geodatabase correctly, maybe the error occurs while trying to download it. Is IIS or the ArcGIS Web Adaptor having problems after serving out many geodatabases?To confirm this, you could try to manually get the geodatabase from the server machine's folder and put it on a client and see if it works.  When you do this, you will need to first enable the geodatabase for sync by manually calling AGSGDBSyncTask#registerSyncEnabledGeodatabase:​ on the client.

0 Kudos