Getting error while writitng my data from dataframe to SAP HANA table using python script.

AYE123
AYE123 Registered Posts: 1

I am getting this error while writitng my data from dataframe to SAP HANA table using python script.

Exception: An error occurred during dataset write (mdbQeu4jjA): JDBCDriverException: SAP DBTech JDBC: [288] (at 22): cannot use duplicate table name

df = dataiku.Dataset("data")

df.spec_item["appendMode"] = True
with df.get_writer() as writer:
writer.write_dataframe(data_df)

Tagged:

Answers

  • JordanB
    JordanB Dataiker, Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 296 Dataiker

    Hi @AYE123
    ,

    Can you check if you might already have a table with the table_name "data_df"? If not, can you provide the full code with input and output table names and full stack trace? Also, are you using a python recipe or notebook to execute this code?

    Thanks!

    Jordan

Setup Info
    Tags
      Help me…