Application host issue

Hi,

I am using Application host activity inside While loop. For the 1st iteration, it is working fine but for 2nd iteration it is throwing this error. I tried to shuffle the values of array but still only for 2nd iteration facing below issue.