Error Case - comparing values in two properties.

Good afternoon,

I am trying to set-up error cases on a document, and I cannot seem to get them to function.

Basically if the values in the "To" and "From" properties are NOT the same, then this should trigger the error.

Both properties are derived from Value lists and are single select.

In a previous question I had about Error Cases - it was suggested to use 'Internal ID' as a way to compare the values inside properties (in this case I was comparing two objects as opposed to items in a Value List)

Property Calculator: Error Case if two actors are the same - General Topics - Forums - M-Files Community

No matter what I try I cannot seem to attach 'Internal ID' to the property tags in the placeholder editors and it doesn't appear.

Does anyone have any ideas?

  • Hi Patrick

    To loan Juuso's comment from your previous situation (solution example in bold):

    "If both lookups are single select, this should be quite straight forward to implement. your current solution is comparing names of employee objects. String values need always be inside ('), which seems to be missing. So to make it work you need to compare 'Jack'='Jack'."

    Using the .internalID works if the property is a lookup based on vault objects (which I assume isn't the case now).

    You should take into account at least character restrictions when doing the comparison (comparing values with apostrophes).

    Let me know, if this helps.