ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to ignore a specific databse exception in message flow

Post new topic  Reply to topic
 how to ignore a specific databse exception in message flow « View previous topic :: View next topic » 
Author Message
Harshalw
PostPosted: Tue Feb 01, 2011 3:22 am    Post subject: how to ignore a specific databse exception in message flow Reply with quote

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.


Thanks and regards
Harshal.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Tue Feb 01, 2011 3:35 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

Maybe just do a SELECT first to see if the row already exists.
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
Harshalw
PostPosted: Tue Feb 01, 2011 4:04 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

thanks will check on that however still any WMB way to do that ?
Back to top
View user's profile Send private message
fatherjack
PostPosted: Tue Feb 01, 2011 4:25 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

DECLARE HANDLER
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Tue Feb 01, 2011 4:36 am    Post subject: Reply with quote

Knight

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » how to ignore a specific databse exception in message flow
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.