I'm trying to split feature, by point, into 2 new features.
var pFeatureEdit = lineToSplit.Feature as IFeatureEdit;
var set = pFeatureEdit.Split(point);
When this feature has configured relation, I got exception.
Got next COM error: The field is not nullable [FIELDID] Where FIELDID - not nullable foreign key in database
Anybody know how to solve this issue?
UPD. When I split this feature using standard Split Tool in ArcMap - it splits successfully. This uses another method to split features?
-
By "configured relation" Do you mean that once you have a relationship defined between this feature class and another feature class, the operaiton raises an error?Jakub Sisak GeoGraphics– Jakub Sisak GeoGraphics2012年09月28日 15:51:50 +00:00Commented Sep 28, 2012 at 15:51
-
yes. I define Relationship Class between these feature classes in ArcCatalog.barbarian– barbarian2012年10月01日 10:57:17 +00:00Commented Oct 1, 2012 at 10:57
3 Answers 3
You did not provide information as to if you were using .shp files, feature classes (i.e. .shp representation in a geodatabase), or a combination of the two as inputs into your operation. This is important because .shp files and geodatabases have distinctions on use of null columns. Specifically .shp files don't allow numeric nulls while feature classes do. This could have an influence on why your operation does not run properly.
Based on your comment I am pretty sure you are using ArcVIew license (or basic in 10.1). As a result you are running into a licensing restriction - you can't edit features and geometry of feature classes that participate in a relationship under a basic license.
Quoting; "you cannot edit data from connections to ArcSDE geodatabases, feature classes that participate in geometric networks or geodatabase topologies, feature-linked annotation, relationship classes, dimension feature classes, or parcel fabric layers. If you need to create or edit these types of data, you should upgrade your ArcGIS license to ArcEditor or ArcInfo."
Source: About Edit Sessions
Is the field property 'Allow NULL values' for the field in question set to 'No'? If it isn't a licencing issue, as Jakub suggests, this would be the first thing I check. enter image description here