I have a workflow that process many campaign information. Sometimes because of data entry issues the workflow fails at dynamic input tool. Is there any way we can write the entire SQL into a log file when it fails? The results workflow shows the error message but doesn't give the exact input data that caused the issue