Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncation of core id field name is not handled #159

Open
dkav opened this issue Nov 23, 2021 · 0 comments
Open

Truncation of core id field name is not handled #159

dkav opened this issue Nov 23, 2021 · 0 comments

Comments

@dkav
Copy link
Contributor

dkav commented Nov 23, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant