In this example, if no files are found on a server (by checking the ${numberOFfiles} variable), then the task will raise an error and abort the Project.
From within the Project Designer page, expand the Miscellaneous folder in the Component Library, and then drag the Raise Error task to the Project Outline.
On the Basic tab of the Raise Error task, specify the Message to write to the Job Log. If no Message is specified, the system variable
system.job.error will be written to the Job Log.
On the Control tab of the Raise Error Task, specify the condition that must be met to run this task. In this case we will check if the number of files is equal to 0.