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?
Discussion posts and replies are publicly visible
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.
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.
After removing the commented lines inside the expression rule, then the issue disappeared.
© 2021 Appian. All rights reserved.