How to handle Updates inSSIS

  • Hello My package flow is like This

    OLEDB SOURCE --> LOOK UP TRANSFORMATION

    |

    lookup output / \error output(for new Inserts)

    (updated records) / \

    / \

    DERIVED COLUMN DERIVED COLUMN

    TRANSFORMATION1 TRANSFORMATION1

    | |

    v v

    OLEDB COMMAND TRANSFORMATION OLEDB DESTINATION (inserting new records to

    (Updating records in destinationTable)

    destination)

    in this senario new records r insrted properly

    but though package runs without error records not get updated in Destination.

    In OLEDB COMMAND my query is like below,

    UPDATE TARGET_SCD_1 SET

    CURRENTSTATUS = ?,

    CURRENTSTATUSEFFECTIVEDATE=?,

    PROPOSALEFFECTIVEDATE=?,

    UNDERWRITINGEFFECTIVEDATE=?,

    TECHLAPSEEFFECTIVEDATE=?,

    WITHDRAWNEFFECTIVEDATE=?,

    DCSEFFECTIVEDATE=?,

    PREPOSIONEFFECTIVEDATE=?,

    INFOURCEEFFECTIVEDATE=?,

    LAPSEEFFECTIVEDATE=?,

    SURRENDEREFFECTIVEDATE=?,

    FLCEFFECTIVEDATE=?,

    CANCELLEDEFFECTIVEDATE=?,

    DCIEFFECTIVEDATE=?,

    REC_UPT_DT=?

    WHERE O__NUM = ?

    In advanced editor of OLE DB I hv created additional 16 paramater columns though i assign datatype as numeric to tht columns when i press refresh automatically it changes to DT_STR.

    My destination table columns r numeric .

    I though due to this datatype mismatch the error came So i change the datatype of dest to varchar to make compatible with OLEDB Comand Transformation. THN also no Use NO UPDATES

    package is running without error but records not get updated.

    if change the flow like below

    OLEDB SOURCE --> LOOK UP TRANSFORMATION

    |

    lookup output / \error output(for new Inserts)

    (updated records) / \

    / \

    DERIVED COLUMN DERIVED COLUMN

    TRANSFORMATION1 TRANSFORMATION1

    | |

    v v

    OLEDB COMMANDTRANSFORMATION /

    (Updating records in /

    destinationTable) /

    \ /

    \ /

    UNION ALL TRANSFORMATION

    |

    v

    OLEDB DESTINATION

    In This Case The updated record get inserted in the target as wel as the old remains as it is means m getting one additional record.

    kindly help me to figure out the bug

    M frusted with this issue please.............

  • Hey my Issue has been solved!!!!

    it was silly mistake............i was passing the paramaters in OLEDB COMMAND TRANSFORMATION In wrong sequence.

    I given the correct sequence its working

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

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