Array dimension out of range in compute

Hello,
Getting one exception when I try to run the code through compute. Here attaching the exception image .
Can someone please help me in solving this issue?

Thanks in advance.

also getting this error