Hi all,
I’ve been asked to build a .NET console application using the ArcGIS Pro SDK to edit features in a Utility Network. Since UN uses branch versioning, I shouldn’t edit DEFAULT directly—I need to connect to and edit a named branch version.
I create a Geodatabase using DatabaseConnectionProperties and specify a version name in the connection properties. I tried different version name formats such as:
But when I do that, the constructor throws:
The version definitely exists (it’s created in Pro before I run the test).
If I create the Geodatabase without specifying a version and then call:
…it returns only one version: DEFAULT. No child versions show up under DEFAULT either.
I also checked whether the geodatabase supports versioning and what versioning type it is. It reports:
Since branch versions are tied to services, I tried using a service geodatabase approach, but in my console project Visual Studio shows:
So I can’t even instantiate/use ServiceGeodatabase from my code.
Branch versioning only works through a feature service connection.
Instructions for creating a connection to a feature service geodatabase can be found here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#geodatabase