tMSSqlInput component, invalid escape sequence

Four Stars

tMSSqlInput component, invalid escape sequence

Hello, 

 

I am currently starting with Talend and I am facing a problem.

 

I use DBVisualizer as database tool and I have no error on it. Then I try the same query into Talend. When I use the 'Guess Schema'  button, I face the following error :

 Invalid escape sequence (valid ones are \b \t \n \f \\" \' \\)

 

From what I understand, the problem is in the syntax of my query. I should escape "\" with "\\". Then, the point I don't understand is that I have no "\" into my query and still this error. 

 

You will find in attachment the query I use.

 

If someone can explain to me the origin of the problem, I would be grateful.

 

Thank you in advance, 

 

best regards. 

 

 

Four Stars

Re: tMSSqlInput component, invalid escape sequence

I removed the extra quotation mark at the end of the first SELECT, but it is still not working
Ten Stars

Re: tMSSqlInput component, invalid escape sequence

The first line still looks a little off. The '1970-01-01' is not part of the DATEADD argument list.
Four Stars

Re: tMSSqlInput component, invalid escape sequence

You're right. Thank you.

 

I corrected it but the problem still persist.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog