You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Otto Fowler <ot...@gmail.com> on 2021/10/01 10:45:33 UTC

Re: ScriptedTransformRecord - record.error.message not set

 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) <ca...@cgd.pt>
<ca...@cgd.pt>
Reply: users@nifi.apache.org <us...@nifi.apache.org> <us...@nifi.apache.org>
Date: September 14, 2021 at 11:46:49
To: users@nifi.apache.org <us...@nifi.apache.org> <us...@nifi.apache.org>
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