Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Have a look at the Help doc for Transform node.
Logging an error and failing the node upon encountering an error condition
ConfigureFields
out1 += in1
ProcessRecords
out1 += in1
#AccountNumber is a required field, error if not present
if in1.AccountNumber is Null:
msg = 'Account Number missing on record: '
record = str(node.execCount)
node.logger.error(msg + record)
raise node.fail()