Go to the Catch part of the BuildExcelList sequence and handle System. Exception. Select System. Exception and add a Log Message activity that states, "Cannot read the images list from the Input Folder. Hence terminating the workflow.".
Follow this up by adding a Terminate Workflow activity under the log message to stop the automation process. We're doing this since we cannot proceed further without the images list. Your workflow for the BuildExcelList workflow should look like this:
That completes our BuildExcelList workflow, where we read the image files and wrote their paths into an output Excel sheet. Now, we will perform a unit test for this workflow.