Page 1 of 1

Oracle Enterprise Stage Reject Link is not working

Posted: Thu Mar 18, 2010 3:58 am
by sohasaid
The Oracle enterprise stage performs a strange behavior here. The inserted data into the stage contains redundant data but it's not rejecting them although it inserts only the unique records into the database according to the primary keys? And there're no warning at the job log.

I'm enabling the 'Output Reject Record' option, anything else I've missed?

Regards.

Posted: Thu Mar 18, 2010 4:15 am
by ArndW
If you are using upsert method, then no error would be generated, since the first record does an insert, the second an update.

Posted: Sat Mar 20, 2010 3:48 am
by sohasaid
Any Suggestions?

Posted: Sat Mar 20, 2010 3:50 am
by sohasaid
Any Suggestions?

Posted: Sat Mar 20, 2010 7:52 am
by chulett
Yes. Clarify your issue, especially your Write Method setting.

Posted: Sun Mar 21, 2010 5:07 am
by sohasaid
- Stage is Oracle Enterprise Stage
- The Write Method is 'Upsert'
- Upsert Order is 'Insert then Update'
- Upsert Mode is 'Auro-generted Update & Insert'

The data source table have no physical primary key but the destination have, I need to capture those records which are not inserted.

Regards.

Posted: Sun Mar 21, 2010 7:24 am
by chulett
Hmmm... as Arnd noted right away, any records 'not inserted' get updated. Why? Because that's what you told it to do. And an error is generated only if both actions fail, the insert and then the update.

Posted: Sun Mar 21, 2010 9:04 am
by sohasaid
chulett wrote: an error is generated only if both actions fail, the insert and then the update.
Got them. I changed the Upsert Mode to 'user-defined Update & Insert' and copied the insert statement to update statement place as I don't expect any updates. And I captured them. :)

Thanks Arnd & chulett for your help.
Regards.