Locate Features Along Routes tool reports "not have an OID" for a point layer.

862
2
Jump to solution
06-06-2012 02:30 PM
SuiHuang
Occasional Contributor II
Hi Everybody:

    I have a point feature layer sitting in a file geodatabase, when I try to use it as the input feature of "Locate Features Along Routes", an error 000666 (not have an OID) is reported (see picture).
[ATTACH=CONFIG]15003[/ATTACH]

    I looked at the table fields and the actual records from ArcCatalog, but couldn't find out why. The feature class has OBJECTID field and the records have unique values. See the attached picture for the fields.
[ATTACH=CONFIG]15004[/ATTACH]

    I also try to display the feature class in ArcMap and do some identify/flash/zoom. All succeed.

    Can you give me some suggestion how to find the reason of the error?
    Thank you!
0 Kudos
1 Solution

Accepted Solutions
by Anonymous User
Not applicable
0 Kudos
2 Replies
by Anonymous User
Not applicable
0 Kudos
SuiHuang
Occasional Contributor II
You might want to consider using the Make Query Table tool to add a virtual OID field.


Tool errors and warnings: 651-675
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=tool%20errors%20and%20warnings:651-675...

Make Query Table (Data Management):
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Make_Query_Table_%28Data_Management%29

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006r000000


Hi damionS:

    I figured that the real cause of my issue was that the feature I attempt to locate has a null shape...but the solution you posted should work for most other cases giving the same error message.
    Thank you.
0 Kudos