You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2023/04/29 15:11:00 UTC

[jira] [Commented] (NIFI-10946) ScriptedRecord processors script error handling

    [ 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)