IBM Support

ARXML error "Ambiguous reference" with AUTOSAR 4.3.0 profile in Rational Rhapsody

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 tags are not exported.

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":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.1;8.1.1;8.1.2;8.1.2.1;8.1.3;8.1.4;8.1.5;8.2;8.2.1;8.3","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg22012482