Skip to main content
November 30, 2021
Question

Expression is returning an error when I try to use in an interface

  • November 30, 2021
  • 4 replies
  • 0 views

Hi,

I have a below expression rule and it is working fine when I tested.

But, when I try to use inside an interface, I am getting an error.

Anyone is having any idea on this?

Thanks.

4 replies

stefanhelzle0001
Brainy
December 1, 2021

I do not see any obvious error here. Did you try to close and reopen both interfaces?

BTW, try to create a constant pointing to the group instead of searching it by name.

peter.lewis
Employee
December 1, 2021

What do you have after line 17 in your expression rule? It looks like it's starting a comment but is it possible that you have other code below your comment? One important thing to know about the expression rule designer: you can actually list multiple complete code statements and it will only evaluate the first one without throwing an error. However, if you then try to use the rule in another place, it will try to evaluate all of them and you could see strange errors.

December 2, 2021

After removing the commented lines inside the expression rule, then the issue disappeared.

Thanks.