Lookup transformation [Lookup Data Key [95]] Error: Row yielded no match during lookup

  • Hello All,

    I am using SSIS to import data from one datasource to another data destination.

    I have following scenerio

    I have two servers [server1] and [server2]

    I have to transfer employee records only on the basis of Departments available in Server2's table(i.e. tbl_Department)

    In technical terms

    I have to implement following query

    SELECT * FROM server1..tbl_EMPLOYEE WHERE DEPARTMENT IN (SELECT DEPARTMENT_Name FROM server2..TBL_DEPARTMENT).

    I tried using lookup transformation but got following error

    [Lookup Data Key [95]] Error: Row yielded no match during lookup

    Please guide me the best way to do this.

    Please do help...whatever you can...really appreciate you all. Advance Thank You all.

  • The first question you need to answer is what to do with records that don't have a matching Department in your TBL_DEPARTMENT table. Can you ignore those records, or do you need to report them at some point?

    In the Reference Table table of the Lookup Transformation Editor, you should select Use Results of a SQL query and enter "SELECT DEPARTMENT_Name FROM server2..TBL_DEPARTMENT." On the Columns tab, join the DEPARTMENT field of the Available Input Columns to the DEPARTMENT_NAME field of the Available Lookup Columns.

    Click on the Configure Error Output button. Go to the Error column of the Lookup Output row. To ignore unmatched records, select Ignore Failure from the drop-down. To enable the ability to redirect the unmatched rows to another output, select Redirect Row.

  • Its working fine after applying Ignore failure.

    Thank you so much for the help.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply