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

Julien G. commented on NIFI-10946:
----------------------------------

Because you don't necessarily want to put a try catch on the whole code and it 
also seems to me that in ScriptedRecord processors you don't have the 
possibility to manipulate the attributes of the flowfile having only access to 
the record being processed.

Moreover the majority of processors handling records write the error in the 
attribute record.error.message so why not those.

> 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