field with esriFieldType.esriFieldTypeRaster cannot be added to ITable

251
0
10-26-2012 10:58 AM
cristiansanabria
New Contributor
Hi

I am trying to add a new Field to a standalone table with:

Field field = new Field();
IFieldEdit2 fieldEdit = (IFieldEdit2)field;
fieldEdit.Name_2 = name;
fieldEdit.Type_2= esriFieldType.esriFieldTypeRaster ;
.........
IRasterDef rasterDef = new RasterDefClass();
rasterDef.Description = "Raster Field";
rasterDef.IsManaged = true;
fieldEdit.RasterDef = rasterDef;

table.AddField((IField)fieldEdit);

but i throws the following exception:  {"Only one raster column is supported in this operation"}

this only happens when the type of the field is " esriFieldType.esriFieldTypeRaster " with other types everything works

any help will be appreciated

regards.
0 Kudos
0 Replies