Question

Jython script error

  • 3 August 2023
  • 3 replies
  • 36 views

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

Userlevel 2
Badge

@Selvaraj please attach your pipeline

Hi Sanjeev, 

Thanks for your reply. Please find the attached..

Userlevel 2
Badge

@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