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

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

book

Article ID: 57351

calendar_today

Updated On:

Products

Spectrum

Issue/Introduction

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" /> 

Environment

Release: Any
Component:

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="x.x.x.x" 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.

Additional Information

Please reference the "Modeling Gateway Toolkit" section of the documentation for more information.