Forums: Troubleshooting and Problems
Hi David,
You likely figured out a solution by this point, but for the sake of completeness, your approach would likely have worked correctly if you had used just DOMAIN != 'MQ' in your When clause. This wouldn't have exactly disabled the rule (it would still execute), but since the DOMAIN variable would have always equaled MQ in the MQ dataset, the rule would never have failed.
The only way to have completely disabled the rule for that domain would have been to create a custom configuration that included an additional ItemGroupDef for your custom domain, along with imports for the rules you did still want to execute as per the configuration guide.
Regards,
Tim
Hello,
I modified SD0017 to prevent it from firing for one of our custom domains (MQ). However it continues to show up in the report. How do I turn off this check for a specific domain?
<val:Regex ID="SD0017" Variable="%Domain%TEST" Test=".{0,40}" When="%Domain%DOMAIN != 'MQ'" Message="Invalid value for --TEST variable" Description="Identifies records that violate condition [LENGTH(Name of Measurement, Test or Examination) less than or equal to 40 characters]" Category="Format" Type="Warning"/>
Regards,
David