Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Lookups

Status
Not open for further replies.

elhaix

Programmer
Jul 31, 2006
115
CA
I'm having a bit of trouble with a lookup transformation

I'm importing a dataset and looking for new, updated, deleted records by comparing the import table with an existing table.

On a lookup transformation, I drag over the UserID (creating the line connection between the user ID fields in both data sources), then check the fields I wish to carry over in my next transformation (where I set the rules for nulls, etc).

The problem I'm seeing (and the SSIS error reporting leaves a lot to be desired) is that the incoming data has some duplicate keys.

For example, a user ID exists twice, as this particular user exists in multiple departments, and this is where I get the error when trying to execute the task.

Is there a way around this? Am I just not setting this up correctly?


Thanks.
 
Instead of looking up by just UserID, look up by both columns with uniquely identify the record.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top