AnsweredAssumed Answered

ArcGIS Runtime .Net 100.6 - Dynamic Layer Query/Edit

Question asked by Keith_Martyn on Oct 31, 2019
Latest reply on Nov 14, 2019 by MBranscomb-esristaff

I am using ArcGIS runtime sdk for .net 100.6.

I start a localserver and load a map service from mpk file.

I add a filegeodatabase as dynamic workspace to the map service and add a ArcGISMapImageSubLayer created from a TableSubLayerSource to the map service first ArcGISImageSubLayer.

I am getting an exception while executing ServiceFeatureTable.QueryFeaturesAsync




string uri = string.Format(
"{0}?layer={{'id':{1}, 'source' :{{'type' : 'dataLayer', 'dataSource' : {{'type':'table', 'workspaceId':'{2}', 'dataSourceName' : '{3}', 'gdbVersion':''}}, 'mapLayerId' : {1} }}}}",
nodesLayer.Id, ((TableSublayerSource) nodesLayer.Source).WorkspaceId,
((TableSublayerSource) nodesLayer.Source).DataSourceName);


ServiceFeatureTable newTable = new ServiceFeatureTable(new Uri(uri));


QueryParameters queryParams = new QueryParameters();
queryParams.WhereClause = "OBJECTID > 1";
queryParams.ReturnGeometry = true;
queryParams.OutSpatialReference = mapView.SpatialReference;

FeatureQueryResult queryResult = await newTable.QueryFeaturesAsync(queryParams);


I am getting an exception Invalid or missing input parameters.


1. What am I doing wrong?

2. Can I edit features in a dynamicLayer?