...
If in.rate is not found then an error message is added to a list of errors found so far. An If() condition is a useful way of building up a list of problems which are found as a Stream is table is processed.
listToString() can be used to format a list (of errors, say) into a string that can be recorded in a string-valued field on a stream record. Given a list like:
...