Skip to main content
Known Participant
Oct 21, 2021 8:32 AM UTC
Question

Error on calling a rule

Hi Everyone,

I am getting an error while calling a rule from interface given below. Can anyone please suggest how to resolve this.

Error:

Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error in rule 'tems_rule_getidentity': Invalid index: Cannot index property 'identity' of type String into type List of Variant

    2 replies

    selvakumark
    Participating Frequently
    Oct 21, 2021 8:42 AM UTC

    Hi,

    Seems like you're trying to index the parameter identity from a null variable. You can make use of the index() function for such cases to avoid errors.

    Participating Frequently
    Oct 21, 2021 10:55 AM UTC

    Instead of referring the field of the CDT using dot notation, use fn!index(). Ex: Replace  ri!array.identity with fn!index(ri!array,"identity",null) if it returns a single variable or fn!index(ri!array,"identity",{}) if it returns an array