I have a Batch macro where I am reading SQL queries and executing the queries within a Dynamic Input tool, among other things. For a few cases, I am getting an error like - "Dynamic Input (3) Error SQLPrepare: [Teradata][ODBC Teradata Driver][Teradata Database](-3807)"
This error is okay. I want to handle these errors so that this SQL query output is skipped and the next input is processed. I don't want to do a record count check as a SQL query output may have 0 records, and it is different from not returning any records because of error.
Also, is there any way to catch this error in a tool instead of just seeing it in the log? Thanks in advance.