"Error text for computation of [Computation rule]" when validating

Hi all,

I have an error message when I validate my document which I don’t understand. I modelled a computation in the SME (2022.06 installer) and it was accepted without any error messages. The preconditions and calculations are shown below. The Enermeration “TestEnumeration” could take the following values “100%”, “90%”, “80%” or “50%”.

When testing the rule an error message was shown when “90%”, “80%” or “50%” was selected. The error message read “error text for computation of stringcomp” and said there were multiple causes but could give no further information.

How can I resolve this error?

Answer from Josef Berger:

This error is caused because multiple preconditions are valid at the same time. If you take the example that “50%” is selected in the Enumeration and the ContractName field is filled, you can see that both the first and the last precoditions are true.

You could correct this by changing the last precondition to.
Fieldfilled(ContractName) AND FieldValueNotIncludedInValueList(TestEnumeration, “90%”,“80%”,“50%”)
This change means that all preconditions are exclusive.

All the best,
Josef