Sounds like a bug.  Please create a jira here
https://issues.apache.org/jira/projects/NIFI/issues/NIFI-8555?filter=allopenissues
.




From: Carlos Manuel Fernandes (DSI) <[email protected]>
<[email protected]>
Reply: [email protected] <[email protected]> <[email protected]>
Date: September 14, 2021 at 11:46:49
To: [email protected] <[email protected]> <[email protected]>
Subject:  ScriptedTransformRecord - record.error.message not set

Hello,



I’m using a ScriptedTransformRecord (Nifi 1.12.1) and sometimes when an
 error arise  in the reader its expected  according the documentation the
attribute record.error.message  is setted but this doesn’t happen.



In the source code (
https://github.com/apache/nifi/blob/632fbcca7d7e028c4526ab2b643c6b83cfadef99/nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/processors/script/ScriptedTransformRecord.java)
I see the  attribute declared (@WritesAttribute(attribute =
"record.error.message", description = "This attribute provides on failure
the error message encountered by the Reader or Writer.") but not used  in
the code.



Any ideas?



Thanks.



Carlos

Reply via email to