Survey banner
Switching to Dataiku - a new area to help users who are transitioning from other tools and diving into Dataiku! CHECK IT OUT

Python notebook failed export to dataiku : NullPointerException error

Level 1
Python notebook failed export to dataiku : NullPointerException error

I am writing a python notebook within a project but I get an error when trying to export it to dataiku with panda dataframe. 

 The error is the following: 

Exception: An error occurred during dataset write (6oh2RgiLQn): NullPointerException: null

and this despite the fact I precede with the following code: 

result = pd.DataFrame(my_array_to_export)
dss_runs = dataiku.Dataset("my_export")









EDIT: here is the configuration of the my_export dataset created in the project: 


0 Kudos
2 Replies
Dataiker Alumni

As explained by larispardo, this normally works without any issue if the dataframe that you write with the .write_with_schema() method is valid and if the dataset exists in the flow. Maybe inspect the result dataframe using

from dataiku import pandasutils as pdu


Could you try restarting your notebook kernel and relaunching the code blocks involved?


0 Kudos
Level 1
I had to reset a project from scratch and follow larispardo steps to make it work. pud.audit is very useful thanks for your help !
0 Kudos