Hello,
I have several datareaders which are processed using a procedure.
I use the option "Error management“ Group." > "On error go to group" > procedure group "datareader failed" so that if a datareader fails, the procedure jumps to a group showing the message "a datareader has failed, please contact the administrator".
This option is important to me since it prevents the procedure to keeps running if some datareader failed.
My issue is :
I have a SQL datareader which sometimes reads new records, sometimes reads 0 records (because nothing has changed in the underlying data source).
This is ok on a data perspective.
However, the procedure interprets it as a failure and goes to the error group "datareader failed".
The help https://help.board.com/docs/data-reader-actions-group says:
On error go to group (mandatory). This functionality accounts for errors that occur before any records are processed by Board, such as missing source files, inaccessible SQL tables, or other source-related failures. In these cases, the Data Reader step is skipped, and the Procedure immediately redirects to the specified error group.
In the case an error of this type occurs, the DiagnosticsLog will display:
— GenericError
— EmptyFile
— NoRecordsFound
— ConnectionUnavailable
— FileNotFound
Choose “NONE (continue Procedure execution)” for the procedure to continue with the next step after an error occurs, maintaining the same behavior as all Board versions up to 14.4 (included).
so it is a feature, not a bug. Do I understand properly?
To my mind, choose “NONE (continue Procedure execution)” is not a good option because i still want the procedure to go on error if there is a real error. In my perspective a query returning 0 records is not an error, is it?
Moreover, the help writes:
In the case an error of this type occurs, the DiagnosticsLog will display: - NoRecordsFound or - EmptyFile
the keywords NoRecordsFound or EmptyFile do not exist in my Diagnostic log file, so.... what happened really to the datareader?