MATLAB: Do I get the error “Duplicate description label not allowed” when the first sentence of the DOORS links description is the same

destinationdoorslinksRequirementsSimulink Requirements

I am using DOORS 9.7 with Simulink R2020b and I am trying to add DOORS links to my model, but can't – I keep getting the error.
Duplicate description label not allowed: ….
The descriptions of my links are not the same, only the first sentence of the description is the same.
Is there a way I can switch this off?

Best Answer

When the first sentence is the same, this is expected behavior for the default label template. The default label template takes a limited number of characters from the 'Object Text', causing the above error if the beginning of the description is the same.
This can be avoided by making a custom template instead of using the default template. This can be done using the 'rmi' function. For example, a new template can be specified using the following template:
>> rmi('setDoorsLabelTemplate', '%p%n in %M')
This will ensure that the Outgoing Links Editor will never get the same label for different links, because '%n' will always be different.
After creating a custom label template, it may be advantageous to update all the existing templates for consistency, which can be done using the following command:
>> rmi('updateDoorsLabels', MODEL_NAME)
More information on the 'rmi' command and Template Label for links can be found at the following documentation link: