featuredataset error

2083
2
10-29-2015 03:32 AM
NigelDsouza
Occasional Contributor

Hi,

I am trying to export a featureclass to a featuredataset which exists in a gdb.

I am first connecting to a file geodatabase workpsace then using the

IFeatureWorkspace.CreateFeatureDataset method creating a featuredataset. when I watch this variable I noticed that the "propertyset" property on the featuredatasety set threw a COM Exception.

How do I resolve this error?

As a result I am unable to perform the export operation to export a featureclass to the featuredataset

Regards,

Nigel.

0 Kudos
2 Replies
DuncanHornby
MVP Notable Contributor

You are going to need to edit your question and add your code if you expect any chance of someone helping you.

0 Kudos
FreddieGibson
Occasional Contributor III

I agree with Duncan...you'll want to be more specific on your question. I'm not sure where you're seeing IPropertySet, but everything you need to do this task should be on the following two pages.

Creating Feature Datasets

http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/00010000029z000000.h...

Converting and transferring data

http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000003rp000000

I would assume that you can create/open a geodatabase and create/open a feature dataset with the path on disk instead of using IPropertySet. That would probably resolve the issue you're running into. If needed you could even handle all of this with the ready-to-run geoprocessing tools that are already designed to handle these tasks.