Posted: Tue Feb 01, 2011 3:22 am Post subject: how to ignore a specific databse exception in message flow
Voyager
Joined: 23 Jul 2008 Posts: 77
Hi
I am using compute node to perform db2 database insertion and updation. I get a xml file through MQ input node consisting of entries in the form of tags. For some xml tags i get dbexcpetion as - 803
(0x03000000:NameValue):Text = '[IBM][CLI Driver][DB2/AIX64] SQL0803N One or more values in the INSERT st
atement, UPDATE statement, or foreign key update caused by a DELETE statement are not valid because the primary key, unique c
onstraint or unique index identified by "1" constrains table "X" from having duplicate values for the index
I want to know how to ignore these kind of exception and proceed for next tag in the xml.
Joined: 14 Apr 2010 Posts: 522 Location: Craggy Island
Untick the 'Throw exception on database error' tickbox and handle the error in your code. _________________ Never let the facts get in the way of a good theory.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum