Skip to content

faq 82346328

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

Already Exists a node with id

by Jack Hill on 2016-09-07 04:19:09


Hi Guys,

I am trying to build a small network. I have built a config, a population and a network file.

When I run the config file I get this error. Obviously the node id has already been assigned.

I was wondering if there was a way of solving this issue without having to change my node id's to assigned numbers? 


12) Error in custom provider, java.lang.IllegalArgumentException: There exists already a node with id = 1.
Existing node: [id=1][coord=[x=0.0][y=0.0]] [type=null][nof_inlinks=2][nof_outlinks=2]
Node to be added: [id=1][coord=[x=0.0][y=0.0]] [type=null][nof_inlinks=0][nof_outlinks=0].
Node is not added to the network.


Comments: 1


Re: Already Exists a node with id

by Johan W. Joubert on 2016-09-07 05:03:16

Hi Jack,

you will have to create a small code snippet to show how you create (and add) the nodes to the network. If you already read a network from XML (via the config file), that might be why you get errors. I recommend you look at the code example

tutorial.programming.createNetworkExample.RunCreateNetworkExample

it shows how you can create a network by scripting it. I'm not sure I understand your question 'solving this issue without having to change my node id's to assigned numbers'. 

Clone this wiki locally