Hello Senpai's!
Im new to Appian and Im currently having this error in my interface which giving me a hard time.
Error Message:
"Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!forEach [line 20]: Error in a!forEach() expression during iteration 1: Expression evaluation error in rule 'da_getlayoutbytype' at function 'choose' [line 10]: Choose index (7) is invalid; must be no more than the number of supplied choices (2)."
I have attached my codes. Please see below image:
1st photo is My Interface:
2nd Photo Expression rule which I called in my interface.
Anyone have an idea what the error means?
Thanks Ahead!
Discussion posts and replies are publicly visible
In choose function, you provided only 1 rule which mean if the value is 1 then the mentioned rule will run but you are trying to give the value more than your rules in the choose function. Please provide all the rule to the choose function for which you want to run the function.
Please see in details here: choose() Function - Appian 22.3
Thank You So Much!
Avoid using choose() function. It requires a lot of maintenance. Use a!match() instead or index() for a better experience.