Search code examples
oracle-databasetalendesbtruncate

Talend : Truncate Table and insert data from a view


i'm working on a job with Tos for ESB 7.1.1. I'm trying to connect to a DB (ORACLE), recover my ID_MAX and save it, TRUNCATE my table and insert data from a view and for each line increment my ID.

What I have done :

  • Connect to my DB (add it to my meta) : OK

  • Save my ID_MAX (save in a context) : OK

What is my problem :

I have an error when I want to TRUNCATE my table :

Exception in component tDBOutput_1 (ODS_TEMPF_PROGRAMMES_TRUNCATE) java.lang.RuntimeException: For delete, the schema must have a key

I created a special Job just for truncate my table this is my designer :

enter image description here

and my tDBOutput :

enter image description herefAM.png

I Don't know if there is any other way to do a TRUNCATE in Talend, so i'm waiting for your help.

Thank you !


Solution

  • So it's was just a basic SQL mistake… I wrote server_myTable and it's was server.myTable

    I close the subject.