Trouble trying to initialize a GeodatabaseSyncTask for downloading a feature layer

193
2
Jump to solution
a month ago
JasonLatko
New Contributor

Hi experts,

Hoping someone can help explain why this isn't working for me.  Using .NET 100.10, I'm trying to use one of the test ESRI services to download a feature layer for offline use.  Any feature layer service will do for my purposes.  I actually tried all 3 of the WildFireSync URLs, but none are working for me.  If someone has another publicly accessible URL, that would be great too.  When my code runs, I keep getting the following error from the CreateAsync method:

Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid request response: The feature service does not support geodatabase sync.

Here is my code:

url = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer/1";

GeodatabaseSyncTask syncTask = await GeodatabaseSyncTask.CreateAsync(new Uri(url));

 

I thought the point of those WildFireSync services was to support sync testing?  Am I missing something?  Thanks much for any suggestions.

Jason

 

0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor
0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor
0 Kudos
JasonLatko
New Contributor

Michael,

That was it!  Thanks for the easy fix.

J

0 Kudos