If the core id field name is greater than 10 characters (in a geodatabase feature class for example) it will be truncated to 10 characters when the core feature class is copied to a shapefile. This occurs in at least two places – s2_buildNetwork.py and s7_centrality.py. The global variable COREFN does not change and thus there is a mismatch between the field names.
The Arcpy function ValidateFieldName can be used to return a valid field name for shapefiles, however this will only hold up if no other field has the first 10 characters the same.
The workaround is to insure the core id field name is 10 characters or less.
If the core id field name is greater than 10 characters (in a geodatabase feature class for example) it will be truncated to 10 characters when the core feature class is copied to a shapefile. This occurs in at least two places – s2_buildNetwork.py and s7_centrality.py. The global variable COREFN does not change and thus there is a mismatch between the field names.
The Arcpy function ValidateFieldName can be used to return a valid field name for shapefiles, however this will only hold up if no other field has the first 10 characters the same.
The workaround is to insure the core id field name is 10 characters or less.
An error caused by this issue was reported on Google Groups - see Linkage Mapper error on **line 324** step 2 (SelectByAttribute) ERROR 000358: Invalid expression