Skip to main content
October 21, 2021
Question

Error on calling a rule

  • October 21, 2021
  • 2 replies
  • 0 views

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
    October 21, 2021

    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.

    October 21, 2021

    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