Postbuild-Selectable Projects: Error Message Caused by Conflicting CompuMethods in the Input ARXML Files

Issue:

If there are different compuMethods for a SystemSignal in the Input files and it is a Postbuild-Selectable project, this error may occur:

[Warning] Two CompuScales from "/VariantDefinition/Criterion/Communication == 0" and "/VariantDefinition/Criterion/Communication == 1" are simply merged if they share the same index in their respective lists of siblings. If this behavior is undesired <MERGE-BY-FEATURES> can be used in the merge configuration for "/VariantDefinition/Criterion/Communication == 1" to identify elements of that type by a combination of feature values.
[Error] Merge conflict in containment "compuMethod" at SwDataDefPropsConditional below SystemSignal "<Asr path of SystemSignal>". Post-build variance is not supported at this place. The conflict should be resolved by aligning the input data of "/VariantDefinition/Criterion/Communication == 1" to match the content of the other variants. As a temporary alternative, any of the following entries in the merger configuration file could work around the problem: Use <IGNORE-DIFF metaClass="SwDataDefPropsConditional" feature="compuMethod"/> in the <MERGE> section to ignore all differences in that feature. Use <POSTFIX-ON-NAME-CLASH metaClass="SystemSignal" postfix="_/VariantDefinition/Criterion/Communication_==_1"/> in the <MERGE> section to resolve the short name clash for all elements of that type. Use <MOVE from="<Asr path of SystemSignal>" to="<Asr path of SystemSignal>/VariantDefinition/Criterion/Communication_==_1"> in the <PRE-PROCESSING> section to resolve the short name clash for this element. Use <DISCARD-EXPLICITLY element="<Asr path of SystemSignal>"/> in the <PRE-PROCESSING> section to exclude the element from the merge.

Recommended Solution:

adaption of the input files

Workaround: extend the file SystemDescriptionMergConfig.xml with these lines
<MERGE>
<IGNORE-DIFF metaClass="SwDataDefPropsConditional" feature="compuMethod"/>
<IGNORE-DIFF metaClass="SwDataDefPropsConditional" feature="unit"/>
</MERGE>



Article ID: 895
Last updated: 2020-05-13
Revision: 3
MICROSAR and DaVinci -> Troubleshooting -> Postbuild-Selectable Projects: Error Message Caused by Conflicting CompuMethods in the Input ARXML Files
https://kb.vector.com/entry/895/