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)"
So the tool has a sql error and just keeps going??? swap to dynamic input in-db because if it errors out --- the workflow will crash vs giving you 0 records. as you noted ---- 0 records is not the same as a sql error.
So I have a list of SQLs in an Excel and the Dynamic Input is supposed to run each and store output in a different Excel. If a SQL is failing, it is showing the error and then moving on to the next SQL. Please see below for screenshot. I want to handle these errors in a better way. I have no issues with the workflow going on.
Can anyone help with any suggestion on this?
User | Count |
---|---|
108 | |
89 | |
78 | |
54 | |
40 |