crisneo

field with esriFieldType.esriFieldTypeRaster cannot be added to ITable

Discussion created by crisneo on Oct 26, 2012
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.

Outcomes