5

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?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Sep 28, 2012 at 14:34
2
  • 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? Commented Sep 28, 2012 at 15:51
  • yes. I define Relationship Class between these feature classes in ArcCatalog. Commented Oct 1, 2012 at 10:57

3 Answers 3

2

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.

answered Mar 7, 2014 at 10:24
0

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

answered Oct 1, 2012 at 13:28
0

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

answered Jan 11, 2013 at 13:30

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.