Read DataIKU recipe error using Python
![psvnm](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar16.png)
psvnm
Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Dataiku DSS Adv Designer, Registered Posts: 7 ✭✭✭✭
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
Tagged:
Answers
-
Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,211 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.get_log
Thanks