Survey banner
The Dataiku Community is moving to a new home! We are temporary in read only mode: LEARN MORE

Read DataIKU recipe error using Python

psvnm
Level 2
Read DataIKU recipe error using Python

Hi there,

We are doing an automation using DataIKU. For that I want to capture the error using python on the recipe which dataIKU throws . Please share us the python code or sample code which will work in my scenario.

Kind regards,

Dataiker.


Operating system used: windows

0 Kudos
1 Reply
AlexT
Dataiker

Hi @psvnm,


If you are running in scenario if so you could use the variable ${failedEventsSummary}. 

If you want to get the error directly from the logs, you could use 

https://doc.dataiku.com/dss/latest/python-api/jobs.html#reading-the-jobs-status
Then use get_log()
https://doc.dataiku.com/dss/latest/python-api/jobs.html?highlight=get_log#dataikuapi.dss.job.DSSJob....

Thanks


0 Kudos