Troubleshooting
Problem
When exporting a Rhapsody AUTOSAR 4.3.0 model to an ARXML file then you get an error message: "Ambiguous reference [initValue, timeoutSubstitutionValue]", the
Symptom
An error like the following is shown:
[error] Ambiguous reference [initValue, timeoutSubstitutionValue] (illegal roles: ArrayValueSpecification)
[warning] The relation between <<NonqueuedReceiverComSpec>> 'nonqueuedreceivercomspec_1' and <<ArrayValueSpecification>> 'ValueSpecification_0' has not been exported
Cause
You want to export a Rhapsody model with AUTOSAR 4.3 profile to AUTOSAR XML. With AUTOSAR 4.0 profile the export is working fine.
The ambiguity in the metamodel (2 roles with the same type) was introduced by AUTOSAR 4.3, therefore the AUTOSAR 4.0 model is still OK.
Environment
Rhapsody Rhapsody in C model with AUTOSAR 4.3 profile
Diagnosing The Problem
The ARXML exporter complains that it doesn't know whether the ArrayValueSpecification element is an initValue or timeoutSubstitutionValue aggregation. Therefore, the generated .arxml document doesn't contain the <INIT-VALUE> tags. The .arxml document from AUTOSAR_40 profile is generated correctly: it contains the <INIT-VALUE> tags.
Resolving The Problem
You need to add the Stereotype "role_initValue" to the ValueSpecification element (ArrayValueSpecification, NumericalValueSpecification, ApplicationValueSpecification, and the rest of the derived terms), in order to resolve the ambiguity with another role, which is also typed by ValueSpecification (for example, timeoutSubstitutionValue).
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22012482