PostProcessingErrorOnFailure

Set PostProcessingErrorOnFailure to True to return an error when a scripting error occurs in Lua post-processing.

By default, if an error occurs during post-processing, NiFi Ingest continues processing matches and the API returns success, writing a message and stack trace to the registered logging callback if you have set one. To propagate script errors as an EDK error, set PostProcessingErrorOnFailure to True.

In the C API, with this setting, a call to EdkGetNextMatch returns the error code EdkErrBadPostProcessScript. Details of the script error are available in the last session error.

In other languages (.NET, Java, Python), a post-processing scripting error while iterating over matches raises an exception, with the EdkErrBadPostProcessScript error code. The exception message contains details of the Lua error.

You can override this setting in a per-session configuration.

Type: Boolean
Default: False
Required: No
Configuration Section:

Any section that you have defined for Named Entity Recognition settings

Example: PostProcessingErrorOnFailure=True
See Also:

Script