[ 
https://issues.apache.org/jira/browse/NIFI-10946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717931#comment-17717931
 ] 

Matt Burgess commented on NIFI-10946:
-------------------------------------

Is there a reason to have the processor itself set the attribute for the error, 
or should we just leave it to the script writer to handle errors and set the 
attribute in the script and route the FlowFile to failure?

> ScriptedRecord processors script error handling
> -----------------------------------------------
>
>                 Key: NIFI-10946
>                 URL: https://issues.apache.org/jira/browse/NIFI-10946
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Julien G.
>            Priority: Major
>
> An attribute is written if an error occurred in the ScriptedProcessor's 
> reader.
> But if an error occurs in the script execution, the FlowFile will be routed 
> to failure but the error will not be written to an attribute in the FlowFile.
> Can an improvment be made in this direction?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to