Handle SQL Adapter Exception
From: Btvn (Btvn_at_discussions.microsoft.com)
Date: 07/01/04
- Next message: Roland Jäger: "Generic/untyped web service fails with XML receive"
- Previous message: Rune: "Re: variables in mapping?"
- Next in thread: Darrin Curtis [MSFT]: "RE: Handle SQL Adapter Exception"
- Reply: Darrin Curtis [MSFT]: "RE: Handle SQL Adapter Exception"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 02:07:01 -0700
Now, I am trying to develop and orchestration which is using SQL adapter for inserting the records in DB. It works very well as long as data is valid. I provided invalid data which voilates Primary Key constraint. Biztalk logged into Event Viewer's Application Log with following warning message:
------------------Warning 1---------------------
The adapter "SQL" raised an error message.
Details "HRESULT="0x80040e2f" Description="Violation of
PRIMARY KEY constraint 'PK_Student'. Cannot insert
duplicate key in object 'Student'."
?<Root xmlns:ns00="urn:schemas-microsoft-com:xml-
updategram"><?MSSQLError HResult="0x80040e2f"
Source="Microsoft OLE DB Provider for SQL Server"
Description="Violation of PRIMARY KEY
constraint 'PK_Student'. Cannot insert duplicate key in
object 'Student'."?></Root>".
///////////////////////////////////////////////////////
-----------------Warning 2-------------------------
The adapter failed to transmit message going to send
port "SQL://IMRAN-RAMZAN/VirginArtistLookup/". It will be
retransmitted after the retry interval specified for this
Send Port. Details:"Unknown Error Description ".
////////////////////////////////////////////////////////
I already catch DeliveryFailureException. But this exveption if fired when i try all number of tries. So that time I cant get any more detail information about that exception like warning message above. How to catch exception when there are warnign message like above.
Thanks so much..
- Next message: Roland Jäger: "Generic/untyped web service fails with XML receive"
- Previous message: Rune: "Re: variables in mapping?"
- Next in thread: Darrin Curtis [MSFT]: "RE: Handle SQL Adapter Exception"
- Reply: Darrin Curtis [MSFT]: "RE: Handle SQL Adapter Exception"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|