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!
Thanks for looking into this. Much appreciated!
I am running into this a lot. When simply trying to update the values in my FROM_MEAS or TO_MEAS in my table, I get the error.
Everything else appears to be fine with the table. The RouteID field is Long, and my FROM_MEAS/TO_MEAS are both Float.
When I get this error the updates I make in the table do not take, it reverts back. I've noticed though if I save edits and close/open the table and click around a bit, the new values eventually will update but there doesn't seem to be a rhyme/reason/pattern that I can follow.
FYI this issue was resolved for us in ArcGIS Pro 3.6.0. Before the upgrade, we were getting these errors with many different types of edit operations.