Error while generating python output

Options
Srkanoje
Srkanoje Registered Posts: 32 ✭✭✭✭

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

Tagged:

Best Answer

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Answer ✓
    Options

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

Answers

  • Srkanoje
    Srkanoje Registered Posts: 32 ✭✭✭✭
    Options

    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).

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    edited July 17
    Options

    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>)
  • Srkanoje
    Srkanoje Registered Posts: 32 ✭✭✭✭
    Options

    @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

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Options

    Hi,

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

  • Srkanoje
    Srkanoje Registered Posts: 32 ✭✭✭✭
    Options

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

Setup Info
    Tags
      Help me…