Copy activity csv -> stored procedure RRS feed

  • Question

  • Hi, 

    We a doing a copy activity with csv file -> stored procedure.

    Can't get it to work or it might not be possible to do it this way.

    Csv sample: 





    There can be rows multiple rows with the same key pair. 

    2533274821384324,4c123e07-ed78-49a6-93b2-6eca3754c9d8 are primary key pair in table.

    The stored procedure uses merge to update some fields if they have changed otherwise if  the 'on' condition using the key pair is not matched row is inserted.

    The problem is it fails on duplicate key contraint error because the on condition is never triggered is there is no row. Even tried selecting only on row pr. key pair but that also fails sometimes.

    My guess is that it might be a transactional constrain?
    • Moved by Mike Laughlin Friday, October 14, 2016 12:10 PM From 'Forums Issues' - not reporting an issue with the forums.
    Friday, October 14, 2016 11:58 AM