Question

jython script gave an error


Dear Team,

 

when i preview the pipeline its says validation errors 

 

SCRIPTING_08 - Script error while running init script: javax.script.ScriptException: NameError: name 'record' is not defined in <script> at line number 28

Can someone assist me on these


3 replies

Hi Anirudh,

I would suggest to check for the indentation while using Jython. It is common to get that error.

 

Userlevel 2
Badge +1

@Anirudh

are you trying to access ‘record’ field in init script of jython evaluator?

Userlevel 5
Badge +1

@Anirudh 

The issue might occur if you are trying to access the field which are not present or misspelled .

Please check .

 

Reply