'Every last itteration failing in start loop stage

I have created a genric sequence job. Exec command >> start loop >> job activity >> end loop

Here in exec command stage i have written a script to get list of files present in directory as csv values, and the file count will varry. file,file2,file3

But when i run the job every last itteration fails showing below error @job_activity,error calling DSSetParam(name), code =-4



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source