Spectrum Modeling Gateway import exception "Parse error: invalid element"

Document ID : KB000057351
Last Modified Date : 14/02/2018
Show Technical Document Details

ISSUE:  Spectrum Modeling Gateway import exception "Parse error: invalid element". The entire error is seen below:

 

Modeling Gateway import exception: 

java.lang.Exception: Parse error: invalid element <Device model_handle="0x1c96f6" /> 

 

CAUSE:  Examine the xml file used for the import. Find the <Device model_handle=....> tag for the model handle displayed in the error. In the above example, the following is seen in the xml file for that model handle: 

 

<Device model_handle="0x1c96f6" > <Port identifier_name="portID" identifier_value="" model_handle="0x1c9795" /></Device> 

 

The above entry is missing the network_address parameter. It should look like the following: 

 

<Device network_address="1.2.3.4" model_handle="0x1c96f6" > <Port identifier_name="portID" identifier_value="10140" model_handle="0x1c9795" /></Device> 

 

The cause of the missing network_address parameter is the associated model in the database where the Modeling Gateway export was run does not have the Network_Address attribute id 0x12d75 populated.

 

RESOLUTION:  In the database where the Modeling Gateway export was run, either manually populate the Network_Address attribute id 0x12d75 for the model or destroy the model from the database. Then, rerun the Modeling Gateway export to recreate the xml file. Then, rerun the Modeling Gateway import.