Error while generating python output

Solved!
Srkanoje
Level 3
Error while generating python output

hi All 
i am trying to run a python recipe and the jobs runs completely fine, but when i am trying to explore my output data set i can see the below error please find the screenshot attached  can someone please suggest actions on it 

0 Kudos
1 Solution
sergeyd
Dataiker

Thanks. Can you do the same in the python recipe? You will see the print statement under [dku.utils] lines. 

View solution in original post

0 Kudos
6 Replies
Srkanoje
Level 3
Author

it basically looks like this 

 


Root path does not exist
Root path of the dataset output_dataiku_ does not exist
This error is typically caused by either:

A dataset configuration issue. You need to modify the affected settings to fix the issue
The dataset needs to be (re)built (if it is a target in the Flow).

0 Kudos
sergeyd
Dataiker

Hi @Srkanoje 

It means that your python code hasn't returned any error (job succeeded) but there was no output generated. Do you have a piece of code that writes into the dataset? 

# Write recipe outputs
<output_dataset_handle> = dataiku.Dataset("<dataset_name>")
<output_dataset_handle>.write_with_schema(<df_you_want_to_write>)
0 Kudos
Srkanoje
Level 3
Author

@sergeyd 

i have it in my code but still not producing the output can you suggest 


submid = pd.DataFrame({'Dummy_number': df_test["Dummy_Number"],'Issue_Description': df_test["Issue_Description"]})
prediction = pd.DataFrame(preds, columns = class_names)
submission = pd.concat([submid, pd.DataFrame(preds, columns = class_names)], axis=1)
submission.to_csv('submission_newPRT_1119_alt.csv', index=False)

submission_df = submission
output_dataiku_df = submission_df


#Write recipe outputs
output_dataiku_ = dataiku.Dataset("output_dataiku_")
output_dataiku_.write_schema_from_dataframe(output_dataiku_df)



but still the same error gets repeated 

0 Kudos
sergeyd
Dataiker

Hi, 

Can you please check that your "output_dataiku_df" dataframe has data? 

0 Kudos
Srkanoje
Level 3
Author

yes it shown data when i tired to print it in a python notebook 

0 Kudos
sergeyd
Dataiker

Thanks. Can you do the same in the python recipe? You will see the print statement under [dku.utils] lines. 

0 Kudos