Bonjour
je débute sur Talend (sur un projet java)
Je veux charger les données de d’un fichier CSV vers une table oracle TABLE1
Mon un fichier plat contient
"0001","400,00","20/09/2006"
"0002","3000,00","20/09/2006"
…
La Table TABLE1
NUM VARCHAR2 4
MNT NUMBER
DATE_C DATE
J’ai fais un tFileinputCSV attache en main avec un tOracleOutput
Le Schema que j’ai utilisé
NUM string
MNT string
DATE_C Date
Je lance mon job est jai l’errure suivante je ne sais pas koi faire
Starting job test_date at 17:46 19/08/2007.
Exception in component tFileInputCSV_1
java.lang.NullPointerException
at java.text.SimpleDateFormat.compile(Unknown Source)
at java.text.SimpleDateFormat.initialize(Unknown Source)
at java.text.SimpleDateFormat.<init>(Unknown Source)
at java.text.SimpleDateFormat.<init>(Unknown Source)
at routines.system.ParserUtils.parseTo_Date(ParserUtils.java:100)
at elt_projet.test_date.test_date.tFileInputCSV_1Process(test_date.java:364)
at elt_projet.test_date.test_date.main(test_date.java:620)
Job test_date ended at 17:46 19/08/2007. [exit code=0]
Mais quand je change le type de la colonne Date_C en VARCHAR2 et string dans le tFileinputCSV , le chargement se fait normalement ;
Y a t’il un moyen de charger directement et gardé le type de la colonne DATE_C en type DATE
merci pour votre aide
Partager