Skip to main content
Question

jython script gave an error

  • July 20, 2022
  • 3 replies
  • 77 views

Anirudh
Fan

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

alvachaitanya
Fan

Hi Anirudh,

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

 


wilsonshamim
StreamSets Employee
Forum|alt.badge.img+1
  • StreamSets Employee
  • 25 replies
  • July 22, 2022

@Anirudh

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


Bikram
Headliner
Forum|alt.badge.img+1
  • Headliner
  • 486 replies
  • July 24, 2022

@Anirudh 

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

Please check .