When attempting to import a Spectrum export file using the Modeling Gateway toolkit, the process fails during the parsing stage with a java.lang.Throwable: Model AdiscConfig:Swindon was parsed as two different classes: com.aprisma.tie.parse.DiscoveryElement exception.
Example Error Output:
The error occurs because the Modeling Gateway parser is configured to handle "huge landscape" imports, which changes how certain discovery and model elements are processed. When this mode is active on a landscape that does not require it or has conflicting model definitions, the parser may misidentify a model (such as AdiscConfig) as two distinct element classes simultaneously, leading to the java.lang.Throwable exception modelinggateway throws error when importing.
To resolve this issue, disable the huge_landscape_import parameter on the target SpectroSERVER:
$SPECROOT/SS-Tools/ directory..modelinggatewayresource.xml in a text editor.huge_landscape_import = "true"huge_landscape_import = "false"./modelinggateway -vnm [HOSTNAME] -i [IMPORT_FILE].xmlThe import should now proceed through the parsing stage and correctly create or update the models.