Hi,
I am trying to lookup on the target based on DATA_EXCPT_CD and want insert new records and update the DATA_EXCPT_DESC or DATA_EXCPT_SVRY_CD based for existing records.
When i run through the debugger my mapping updates existing rows
but after i run the workflow it
ERROR: Target table [EXCPT_CD_STG] does not allow UPDATE
Row # [0] in bad file
WRITER_1_*_1> CMN_1053 : Rowdata: ( RowType=1(update) Src Rowid=1 Targ Rowid=1
DATA_EXCPT_CD (DATA_EXCPT_CD:Char.3: "1"
DATA_EXCPT_DESC (DATA_EXCPT_DESC:Char.100: "Patient"
DATA_EXCPT_PRO (DATA_EXCPT_PRO:Char.1: "1"
DATA_EXCPT_SVRY_CD (DATA_EXCPT_SVRY_CD:Char.3: "1"
REC_CRTN_DT_TM (REC_CRTN_DT_TMate: "09/07/2004 04:47:57"
LOAD_DT_TM (LOAD_DT_TMate: "10/11/2004 19:38:57"
DATA_DT_TM (DATA_DT_TMate: "10/11/2004 19:38:57"
)
I selected the source as data driven and for target I tried to select different options Update else insert or update as update.
but every time it rejects the records with existing DATA_EXCPT_CD.
the target database is in oracle.
would really appreciate your help!!
thanks
I am trying to lookup on the target based on DATA_EXCPT_CD and want insert new records and update the DATA_EXCPT_DESC or DATA_EXCPT_SVRY_CD based for existing records.
When i run through the debugger my mapping updates existing rows
but after i run the workflow it
ERROR: Target table [EXCPT_CD_STG] does not allow UPDATE
Row # [0] in bad file
WRITER_1_*_1> CMN_1053 : Rowdata: ( RowType=1(update) Src Rowid=1 Targ Rowid=1
DATA_EXCPT_CD (DATA_EXCPT_CD:Char.3: "1"
DATA_EXCPT_DESC (DATA_EXCPT_DESC:Char.100: "Patient"
DATA_EXCPT_PRO (DATA_EXCPT_PRO:Char.1: "1"
DATA_EXCPT_SVRY_CD (DATA_EXCPT_SVRY_CD:Char.3: "1"
REC_CRTN_DT_TM (REC_CRTN_DT_TMate: "09/07/2004 04:47:57"
LOAD_DT_TM (LOAD_DT_TMate: "10/11/2004 19:38:57"
DATA_DT_TM (DATA_DT_TMate: "10/11/2004 19:38:57"
)
I selected the source as data driven and for target I tried to select different options Update else insert or update as update.
but every time it rejects the records with existing DATA_EXCPT_CD.
the target database is in oracle.
would really appreciate your help!!
thanks