Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Import CSV file to Postgres with Talend

I tried to import a CSV file in my table on PostgreSQL. I used Tmap to match the fields but when I launched the process I got this error:
Exception in thread "main" java.lang.Error: Compilation problem not solved: Invalid character constant
The error I get is too generic to understand. How can I do to investigate the problem?
Labels (4)
8 Replies
Anonymous
Not applicable
Author

Can you post your statement expression used in tMap?
Vaibhav
Anonymous
Not applicable
Author

Hi romidipa,
You'll get a Image upload box that allows to upload screen captures and images up to 200KB, when you click on "post reply" (not through the quick post").
Best regards
Sabrina
0683p000009MEHI.png
Anonymous
Not applicable
Author

I put the pictures which I hope will help to understand the problem
0683p000009MEJX.png 0683p000009ME9V.png 0683p000009MEJc.png
Anonymous
Not applicable
Author

I put the pictures which I hope will help to understand the problem..
this is my csv
alleg_id;alleg_categoria;alleg_allegato;alleg_descr_breve;alleg_progetto;alleg_sostituito;alleg_categ_sostituita;alleg_aria;alleg_acqua;alleg_territorio;alleg_ordina
60;B1.10;B1;Progetti di infrastrutture - linee ferroviarie a carattere regionale o locale;linee ferroviarie a carattere regionale o locale;1;B1.10;1;1;1;65
61;B1.11;B1;Progetti di infrastrutture - funicolari o linee simili di tipo particolare;funicolari o linee simili di tipo particolare, esclusivamente o principalmente adibite al trasporto di passeggeri (vedi cat. B3, n. 6);1;B1.11;1;1;1;66
Anonymous
Not applicable
Author

I think there is a trouble in metadata creation,
your input columns are 9 - as per csv data
and data shows - 11
tMap shows - 10
Please fix this, however, you don't need tMap, as there is no processing involved... You can remove that...
Vaibhav
Anonymous
Not applicable
Author

Now there are 11 field in csv, in pg table e in tmap process. I removed the id serial in postgresql table nevertheless i get this error
Exception in component tMap_1
java.lang.NullPointerException
at demos.csv_table_0_1.csv_table.tFileInputDelimited_1Process(csv_table.java:1447)
at demos.csv_table_0_1.csv_table.runJobInTOS(csv_table.java:2070)
at demos.csv_table_0_1.csv_table.main(csv_table.java:1929)
0683p000009ME1a.png
Anonymous
Not applicable
Author

There could be multiple reasons for Null pointer exception
- may be that tMap is not receiving expected input from the input component
Can you show the tMap configuration?
Vaibhav