Skip to main content
Question

Jython script error


Selvaraj
Fan

I have a pipeline with Jython script and i scheduled the pipeline to run everyday it works fine.

 

I got an error in the same pipeline like “ RETRY: SCRIPTING_06 - Script error while processing batch: javax.script.ScriptException: NameError: global name 'sdcErrors' is not defined in <script> at line number 118“

 

Kindly suggest.

 

Thanks

Selva

 

 

3 replies

Sanjeev
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 53 replies
  • August 4, 2023

@Selvaraj please attach your pipeline


Selvaraj
Fan
  • Author
  • Fan
  • 1 reply
  • August 4, 2023

Hi Sanjeev, 

Thanks for your reply. Please find the attached..


Sanjeev
StreamSets Employee
Forum|alt.badge.img
  • StreamSets Employee
  • 53 replies
  • August 7, 2023

@Selvaraj the error is happening due to ‘sdcErrors’ being un-defined anywhere in the script. 

You’re using it at a couple of places in the script.  For instance: 

raise StageException(sdcErrors, 'Error Retrieving Active SAP_DBNA Jobs')

 


Reply