Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Basic SCD syntax error

Hello. I am new to Talend and learning.

 

I am trying to do a tDBSCD component on basic customer information. I am reading from SQL server and populating back into SQL server. When I run the job I get the following error: " Incorrect syntax near 'WHERE' " , repeated a number of times. 

 

I included a screenshot below of the SCD setup. 

 

Any help in discovering the cause of this error is appreciated. 

 

Thank you. 

Labels (3)
1 Solution

Accepted Solutions
nivedhitha
Creator III
Creator III

No. the surrogate key is just a column with sequential numbers in your case. source key is the is the column with which you identify which row you are referring to. It is based on that key, say the customerid you decide if any of the dimensions like name or status or class has changed. For every change you will see a new record inserted with the existing record expired  

View solution in original post

11 Replies
nivedhitha
Creator III
Creator III

@kwahl, Is it the tDBInput or the scd component that is giving the error?

Can you provide screenshots(the configuration section) of both the component?

Anonymous
Not applicable
Author

nivedhitha
Creator III
Creator III

@kwahl , Can you also ensure the below columns (start and end) actually exist in your target table(the scd-2 table)?0683p000009M9wf.png

 

Anonymous
Not applicable
Author

screenshot below of table from ssms

[image: Screenshot 2020-03-04 at 14.53.34.png]

Anonymous
Not applicable
Author

oops, can't insert photo from email. 

 

0683p000009M9uG.png

 

manodwhb
Champion II
Champion II

@kwahl , can you share the configuration of tDBSCD component?

 

Anonymous
Not applicable
Author

0683p000009M9xi.png

nivedhitha
Creator III
Creator III

@kwahl ,

The issue is there are no source keys mentioned. There has to be a key field on which a lookup will be made to see if any of the dimensions have changed. 

Looking at your table I'm guessing customerid might be your key

Anonymous
Not applicable
Author

is a 'source key' synonymous with 'surrogate key'?