I am working add feature to feature service as offline. My feature service is editable. I created a geodatabase and added a feature to it. I can see my feature I added in geodatabase. However, when I synchronize geodatabase with feature service, I get a "" error. Error is not null just "";
The code is below ;
GeodatabaseSyncTask syncTask = await GeodatabaseSyncTask.CreateAsync(featureServiceUri);
// Create sync parameters
SyncGeodatabaseParameters taskParameters = await syncTask.CreateDefaultSyncGeodatabaseParametersAsync(geodatabase);
// Create a synchronize geodatabase job, pass in the parameters and the geodatabase
SyncGeodatabaseJob job = syncTask.SyncGeodatabase(taskParameters, geodatabase);
MessageBox.Show(job.Status.ToString());
job.Start();
MessageBox.Show(job.Status.ToString());
job.JobChanged += (s, arg) =>
{
// Report changes in the job status
if (job.Status == JobStatus.Succeeded)
{
// Report success ...
MessageBox.Show("Synchronization is complete!");
}
else if (job.Status == JobStatus.Failed)
{
// Report failure ...
MessageBox.Show(job.Error.Message);
}
else
{
// Report that the job is in progress ...
MessageBox.Show("Sync in progress ...");
}
};
// await the completion of the job
await job.GetResultAsync();
I get error at await job.GetResultAsyn();
line.
What am I doing wrong?