Hello everyone,
I am using SSIS 2008.
I am trying to do a lookup to see if a student already exists. I have tried several things but I keep running up against the same roadblock.
I am importing from an Excel spreadsheet. In it is a name field, which has the last name first, a comma, then the first name and middle name. I am exporting to a table StudentIdentification. LastName, FirstName and MiddleName are all varchar(100) columns.
When I edit the Lookup Transform, On the Connection screen, I pick the StudentIdentification table.
Try 1: I wrote a view against StudentIdentification to produce a Fullname_LNF (last name first) column.
On the Columns screen, I click on the Excel Name column and drag it to the Fullname_LNF column and I get the error: Cannot map the input column, 'Name', to the lookup column, 'Fullname_LNF' because the data types do not match
Try 2: I dropped the view. I made a computed column in StudentIdentification, called it Fullname_LNF, with the formula RTrim(LastName + ', ' + FirstName + ' ' + Coalesce(Middlename, ''))
On the Columns screen, I click on the Excel Name column and drag it to the Fullname_LNF column and I get the error: Cannot map the input column, 'Name', to the lookup column, 'Fullname_LNF' because the data types do not match
Try 3: I made a derived column within the Excel input stream, called it LastName. The expression is Substring(Name, 1, Findstring(Name, ",", 1) -1)
On the Columns screen, I click on the Excel LastName column and drag it to the LastName column and I get the error: Cannot map the input column, 'LastName', to the lookup column, 'LastName' because the data types do not match
I appreciate any assistance in this matter.
Thank you,
Bryan Shaw
bryanshaw46@yahoo.com