book
Article ID: KB0084708
calendar_today
Updated On:
Description
Resolution:
The pre-processing script can inform the runtime adapter to skip processing the input file, by appending the string "Skip the input file" to the status message. The runtime adapter will then skip the input file and proceed to process the next file. If the error directory is specified, the runtime adapter will move the skipped file into the error directory.
To turn on this feature, the string %ScriptStatusFile% should be specified as the last argument in the Pre Processing or Post Processing Argument field. At run time, the adapter will automatically substitute a valid temporary file name to this argument.
The script then will write the status message, if any, into this file. The adapter will read the temporary file, and log the status message to the registered sinks.
Please find the attached Project.zip file, which contains the sample project and also find the pre-processing and post-processing scripts to test the above behavior.
Issue/Introduction
How to skip the input file and move it to error directory if its not required to process?