Collector failing creating offline map / replica with SOI on feature service

7431
7
02-04-2016 04:21 PM
FraserHand
Occasional Contributor III

Hi there,

I have come across an issue where Collector fails to create a replica for an offline map where the map service / feature service has an SOI enabled. This has been tested with a vanilla empty SOI from the .NET template. The create replica and job calls appear to pass through fine but when the relica is actually created (and it does get created) and the call is passed back to the Sync tools an internal error occurs.

What is returned to Collector is

example call: http://some server/arcgis/rest/services/map/FeatureServer/jobs/j39b3b26056d047609d3dbc...

{"resultUrl":"","replicaName":"","submissionTime":1454618828000,"lastUpdatedTime":1454619008000,"status":"Failed","error":{"code":500,"description":"Failed to create replica."}}

Downloading of the map onto device then fails.

The logs detail the following - it looks like a bug but are we able to code around this in the SOI?

Thanks,

Fraser

FINE

String request successfully processed. Response size is 378 characters.

System/SyncTools.GPServer

  1. GPServer.ExecuteJob.CreateFeatureServiceReplica

VERBOSE

Save job j52cc43e658e140bc8116b166a26eb8e7 message type Binary message size 378

System/SyncTools.GPServer

  1. GPServerSync.Save.CreateFeatureServiceReplica

VERBOSE

Save job j52cc43e658e140bc8116b166a26eb8e7 message type Binary message size 552

System/SyncTools.GPServer

  1. GPServerSync.Save.CreateFeatureServiceReplica

SEVERE

Error executing tool. CreateFeatureServiceReplica Job ID: j52cc43e658e140bc8116b166a26eb8e7 : ErrorMsg@SyncGPService:{"code":500,"description":"Failed to create replica."} Failed to execute (Create Feature Service Replica).

System/SyncTools.GPServer

  1. GPServerSync.CheckMessages

VERBOSE

Execute job j52cc43e658e140bc8116b166a26eb8e7

System/SyncTools.GPServer

  1. GPServerSync.Execute.CreateFeatureServiceReplica

FINE

REST request successfully processed. Response size is 103 characters.

System/SyncTools.GPServer

/createReplica

FINE

  1. GraphicFeatureServer.HandleREST_CreateReplicaOperation has completed.

System/SyncTools.GPServer

  1. GraphicFeatureServer.HandleREST_CreateReplicaOperation

FINE

Removing GeoTransformation: from GeoTransformation Defaults.

System/SyncTools.GPServer

SetupGeoTransformation::~SetupGeoTransformation

SEVERE

An error occurred.

System/SyncTools.GPServer

GraphicFeatureServer::CreateSyncReplicaREST

FINE

  1. GeoDataServer.CreateSyncReplica has completed for Replica: Ags_Fs

System/SyncTools.GPServer

  1. GeoDataServer.CreateSyncReplica

DEBUG

VirtualOutputDirectory: /rest/directories/arcgisoutput/SOI_MapServer/, CanUseUrls: 0, InServer: 1

System/SyncTools.GPServer

  1. GeoDataServer.SetupResultGDSData

DEBUG

Time (ms): 59 (/arcgis/rest/services/SOI/FeatureServer/jobs/j52cc43e658e140bc8116b166a26eb8e7)

Rest

DEBUG

Got Response: (SOI, MapServer)

Rest

DEBUG

Posting response from worker thread.

  1. SOI.MapServer

FINE

REST request successfully processed. Response size is 117 characters.

  1. SOI.MapServer

jobs/j52cc43e658e140bc8116b166a26eb8e7

DEBUG

End GraphicFeatureServer.HandleREST_JobResource method.

  1. SOI.MapServer
  2. GraphicFeatureServer.HandleREST_JobResource

INFO

Request for the service 'System/SyncTools.GPServer' processed successfully. Response sent to the user '22a48e75-2607-4687-998f-27274f871f76'.

Soap

DEBUG

Posting response from worker thread.

System/SyncTools.GPServer

DEBUG

Request received in worker thread.

System/SyncTools.GPServer

FINE

Binary request successfully processed. Response size is 1003 bytes.

System/SyncTools.GPServer

  1. GPServer.GetJobInputValues

FINE

Binary request received. Request size is 375 bytes.

System/SyncTools.GPServer

  1. GPServer.GetJobInputValues

DEBUG

Waiting for response from worker thread - System/SyncTools.GPServer.

System/SyncTools.GPServer

DEBUG

Sending request to worker thread - System/SyncTools.GPServer.

System/SyncTools.GPServer

DEBUG

Delegating request to GPServer - System/SyncTools.GPServer.

System/SyncTools.GPServer

Tags (2)
0 Kudos
7 Replies
nicogis
MVP Frequent Contributor

in debug soi have you errors ?

0 Kudos
FraserHand
Occasional Contributor III

Hi,

There are no errors in the SOI - using the vanilla template the SOI just hands straight off to the appropriate delegate as a TRESTHandler - which in this case is the feature server. The error seems to happen in the server code following that pass off. Unless the SOI is handing it to the wrong delegate (but it looks ok?)

Ta

Fraser

0 Kudos
StefanHendren
New Contributor

We have the same issue - A createReplica Request fails when an interceptor is enabled. Errors seen are the same as above.

We have also tried disabling the interceptor to download the map and then re-enabling it to sync. However when syncing it fails (Error Log for Sync failure shown below).

Sync_Replica_Server_Error_Log.jpg

0 Kudos
nicogis
MVP Frequent Contributor

Now 10.4 is available in myEsri. Have you a chance try with ags 10.4 ?

0 Kudos
StefanHendren
New Contributor

Yes we have tried 10.4 pre-release and we have the same issue.

0 Kudos
JakubŠilhavý
New Contributor II

Hi,

we have the same issue. Collector fails to download map if the service is extended by SOI. We are using 10.4 enviroment.

SEVERE21. 3. 2016 10:32:47Error executing tool. CreateFeatureServiceReplica

Job ID: j5de19757bc734b779ab307c371d9f08a :

ErrorMsg@SyncGPService:{"code":500,"description":"Failed to create replica."}

Failed to execute (Create Feature Service Replica).

System/SyncTools.GPServer

Jakub

0 Kudos
pheede-esri
Esri Contributor

All, this has been logged as BUG-000094193. Please contact Esri Technical Support for options on how to proceed.

0 Kudos