Getting error while loading featureclass(branch versioned) in Arcobjects project console app

1216
5
12-05-2022 01:04 AM
shamnasPC
New Contributor III

Hi

I have migrated and geodatabase from 10.4 to 10.9.1 to implement branch versioning, Now I am getting error while loading Feature class using Arcobjects using 'IFeatureClass landFc = featureClasses.OpenFeatureClass("FeatureClassName");'. However for other layers(without branch versioning) is working fine. Can help to find a solution to read and query branch versioned Feature classes in arcobjects ?

 

Thanks

shamnas

0 Kudos
5 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Check the fully qualified featureclass name as written here:

https://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#IFeatureWorkspace_OpenFeatureClass.... 

Share your error message when open featureclass to get real answer.

0 Kudos
shamnasPC
New Contributor III

The error is "Unspecified error"

Please note the Feature Dataset is registered as branch version with geodatabase 10.9 

 

Thanks

Shamnas

0 Kudos
GKmieliauskas
Esri Regular Contributor

Do you use IVersionedWorkspace and IVersion to open FeatureClass?

Look here for sample:

https://gis.stackexchange.com/questions/368914/esri-arcobjects-getting-geometry-directly-from-shape-... 

0 Kudos
sjones_esriau
Esri Contributor

Hi,

ArcObjects does not support Branch Versioning.

There are some other limitations you should be aware of:

https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/versioning-types.htm

0 Kudos
shamnasPC
New Contributor III

Thanks @sjones_esriau 

So will it work if I use ArcPro sdk to process the branch versioned Data ?  Can suggest a best approach to process branch version data in a batch job ?

0 Kudos