Select to view content in your preferred language

Invalid field type for route identifier field

215
2
03-18-2025 09:35 AM
MRJ1
by
Emerging Contributor

Hi. I'm looking to create a route event source layer as described in the ProConcepts documentation under Linear Referencing: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Linear-Referencing#route-event-source 

As a first step in the workflow, when I go to specify the route information..... 

RouteInfo routeInfo = new RouteInfo(routesFeatureClass, routeIdFieldName);

 .....I get an error: "The route identifier field <MyFieldName> is an invalid type". My route id field (which is passed to the RouteInfo constructor as a string identifying the field by name) is of type 'double'. Are only integer field types accepted in this case? It doesn't mention this in the API documentation. The same error occurs when implementing event info using the LineEventInfo class - it does not accept fields of type 'double'.

If I use the geoprocessing tool Make Route Event Layer, the Route Identifier Field states the field can be numeric, text, or GUID. Fields of type 'double' are accepted in this case.

Thank you!

0 Kudos
2 Replies
Aashis
by Esri Contributor
Esri Contributor

Thanks for reporting the issue, @MRJ1. We will investigate it because it appears to be a bug in the SDK.

0 Kudos
MRJ1
by
Emerging Contributor

Thanks for looking into this. Much appreciated!

0 Kudos