0

i use ExecuteScript for lunch this code

but this error appeared o.a.nifi.processors.script.ExecuteScript ExecuteScript[id=e0beca0c-0180-1000-7dbe-5ae9636e8ecf] Failed to process session due to org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: NameError: name 'temperature' is not defined in at line number 1: org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: NameError: name 'temperature' is not defined in at line number 1 org.apache.nifi.processor.exception.ProcessException: javax.script.ScriptException: NameError: name 'temperature' is not defined in at line number 1 at org.apache.nifi.processors.script.ExecuteScript.onTrigger(ExecuteScript.java:254) enter image description here

  • what is your question? – daggett May 20 '22 at 14:29
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community May 21 '22 at 05:45
  • It looks like you're trying to execute that one line as a Jython script, but that isn't a valid script for an ExecuteScript Processor. Take a look at ScriptedTransformRecord, that might give you more of what you're looking for – mattyb May 23 '22 at 17:47

0 Answers0