<cfloop from="2" to="#ArrayLen(MyList)#" index="i">---Line of code---<cftry>---Line of code----<cfcatch type="any"><cffile action = "append" file="#TempDirectory#ErrorFile.csv" Output="#Mylist[i]#" addnewline="yes"></cfcatch></cftry></cfloop>
Once the error is found within the try the catch block will store the data in a file for which data the error occurred, But the cfloop will stop the execution, The Catch will not continue the cfloop execution.
Is there any other solution to store the data in a file when the error occurs and continue the loop execution