While developing a proof-of-concept LRS dataset (in a file geodatabase) with two Line Networks, the first one in it having a Derived Line Network I hit an ERROR 999999 that I suspected may have been triggered by the presence of that Derived Line Network. To test that theory, I had to do a recreation of the first Line Network, not include the Derived Line Network and then include the second Line Network. That enabled me to have my LRS dataset with two Line Networks. Please treat the ERROR 999999 as an aside for now because I don't think I fully understand the circumstances that lead to it yet, but I think it may be the combination of using a file geodatabase for the proof-of-concept and the presence of the Derived Line Network.
What surprised me was that there seems to be no easy way to remove a Derived Line Network from an LRS dataset. I expected that Remove LRS Entity (Location Referencing) would be the tool to use to do that but it could not.
Is there any way to easily remove a Derived Line Network from an LRS dataset while leaving the Line Network that it is derived from in place?
Solved! Go to Solution.
The Delete Routes tool only works on non line and line networks (not derived). I'd recommend exporting the routes in the line network to a scratch feature class, deleting all the routes in the line network (without checking any of the other options) which will also delete the derived network routes and centerline sequence records, remove the derived network via Remove LRS Entity tool, then reload the line network routes from the scratch feature class using Append Routes.
Hi Graeme,
The Remove LRS Entity GP tool should allow you to remove the Derived Network while keeping the Line Network it's associated with (you could also choose to delete the Line Network as well if you want). When you select your LRS workspace and choose to remove an LRS Network, is it not giving you the Derived Network as one of the options to remove?
Nathan
ArcGIS Roads and Highways team
Hi Nathan
I just tested again and the error I get when I choose the Derived Line Network and try to remove it is:
ERROR 130185: You have chosen to remove LRS networks which have related centerline sequence records. Use the Delete Routes tool to clean your network data from the LRS, and then proceed.
Failed to execute (RemoveLRSEntity).
The procedure I used for my test was:
I'm hoping to test this in an Enterprise Geodatabase, and in an ArcGIS Enterprise 11.2 / ArcGIS Pro 3.2 configuration soon.
Re-reading the error message above I wondered whether I might need to try and use Delete Routes on the Derived Line Network before using Remove LRS Entity but I was blocked when I tried to do that too:
The Delete Routes tool only works on non line and line networks (not derived). I'd recommend exporting the routes in the line network to a scratch feature class, deleting all the routes in the line network (without checking any of the other options) which will also delete the derived network routes and centerline sequence records, remove the derived network via Remove LRS Entity tool, then reload the line network routes from the scratch feature class using Append Routes.
Using those extra instructions, I've now been able to use ArcGIS Pro 3.2 to remove the Derived Line Network from the LRS Dataset in my file geodatabase. However, I encountered a few hurdles along the way, so I'll document the full procedure here in case anyone or I need it again in the future.