I'm running a trace via SDK using as ResultTypes: AggregatedGeometry, Feature and Element
var resultTypes = new List<ResultType>();
resultTypes.Add(ResultType.AggregatedGeometry);
resultTypes.Add(ResultType.Feature);
resultTypes.Add(ResultType.Element);
//resultTypes.Add(ResultType.Connectivity);
traceArg.ResultTypes = resultTypes;
I can get the results successfully when executing the trace, however, if I add the ResultType.Connectivity from line 5 as one of the parameters of traceArg.ResultTypes the exception is thrown:
“Trace does not support connectivity or containment and attachment result types”
If I run the same trace using ArcGIS Pro's native trace tool and set Connectivity as one of the ResultType, I get the results without any errors.
Solved! Go to Solution.
Currently, the Pro SDK only supports four trace result types: Element, FeatureElement, Aggregated Geom, and Function Output. Future versions may implement additional types, such as connectivity, geometry, NW diagram, etc. So, what you experienced is expected SDK behavior; if you need other functionalities, unfortunately, you need to use the GP Tool.
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Utility-Network#architecture-of-a-trace
Currently, the Pro SDK only supports four trace result types: Element, FeatureElement, Aggregated Geom, and Function Output. Future versions may implement additional types, such as connectivity, geometry, NW diagram, etc. So, what you experienced is expected SDK behavior; if you need other functionalities, unfortunately, you need to use the GP Tool.
https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Utility-Network#architecture-of-a-trace