Workflow Loop Error

I don’t think that $ is a valid expression for context. It should reference a specific step. If you have a requirement to get the output of multiple steps into the context, you can use a Define Variable step to put all the variables into one step, and add the define variable to the loop context.

More details in this post:

Thanks