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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
Qlik_Administrator_Dude
Partner - Creator
Partner - Creator

Escape Character Error when trying to do a 'Data Preview' in Talend

Hello Everyone, 
I am working through the Qlik Learn for Talend. I am on the very first lesson / lab and I am just not being able to make progress. I am getting an error concerning Escape Sequences. I am not sure how to fix this. I have tried EVERYTHING I can think of. Please help! 

I have the full error below. I have the screenshot of my settings below that. Thank you for the advice - 

Preview Error!
Null value will be used for context parameter Number: For input string: ""
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )

at dibasics.preview_data.Preview_Data.tFileInputDelimited_1Process(Preview_Data.java:1772)
at dibasics.preview_data.Preview_Data.runJobInTOS(Preview_Data.java:3243)
at dibasics.preview_data.Preview_Data.main(Preview_Data.java:2913)

Null value will be used for context parameter Number: For input string: ""
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )

at dibasics.preview_data.Preview_Data.tFileInputFullRow_1Process(Preview_Data.java:1071)
at dibasics.preview_data.Preview_Data.runJobInTOS(Preview_Data.java:2190)
at dibasics.preview_data.Preview_Data.main(Preview_Data.java:1860)

Qlik_Administrator_Dude_0-1786115951828.png

 

Labels (1)
1 Reply
Fabio_Caimi
Contributor II
Contributor II

If you write the path "C:\StudentFiles\DIBasics\Files\Customers.csv"
Talend/Java may interpret those "\S", "\D", "\F", and "\C" as invalid Java escape sequences.
That's why you get the message saying that the valid ones are "\b", "\t", "\n", "\f", "\r", "\"", "\'", and "\\".

Try rewriting the file path as:
"C:\\StudentFiles\\DIBasics\\Files\\Customers.csv"

Or, even better, use forward slashes:
"C:/StudentFiles/DIBasics/Files/Customers.csv"

Regards,
Fabio