JenLink

Error Updating ITable Metadata

Discussion created by JenLink on Oct 27, 2010
Latest reply on May 23, 2011 by bnelliott
Hello everyone,
For some reason, my code now fails when attempting to update a table's metadata using ArcObjects with ArcGIS 10. To update the metadata I am using the following code:

Dim pTable as esriGeoDatabase.ITable
Dim pDataset As esriGeoDatabase.IDataset
Dim pName As esriGeoDatabase.IDatasetName
Dim pMetadata As esriGeoDatabase.IMetadata
Dim pMetaPropSet As esriSystem.IPropertySet

Set pDataset = pTable 'QI
Set pName = pDataset.FullName
Set pMetadata = pName 'QI
Set pMetaPropSet = pMetadata.Metadata

pMetaPropSet.SetProperty "this/is/a/property", pNewDataset.Name
pMetadata.Metadata = pMetaPropSet (code fails here)

Does anyone have a solution to this issue? I noticed that when I update the metadata for a featureclass in the same way, it works just fine.
Thanks!
Jen

Outcomes