Interface Error

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