Catching the error code from procedure
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Catching the error code from procedure




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Catching the error code from procedure  
Ajay Mandke


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 08:35 AM

Hello,

I am trying to develop and orchestration which is using SQL adapter for inse
rting the records in DB. It uses an stored procedure. I want to know how to 
get the success or failure status of insert operation. Currently I am gettin
g following error if duplic
ate record entry is tried. I dont get any notification in orchestration and 
it terminates.

Error message in Event viewer.
The adapter "SQL" raised an error message. Details "HRESULT="0x80040e2f" Des
cription="The statement has been terminated."
HRESULT="0x80040e2f" Description="Violation of PRIMARY KEY constraint 'PK_TE
STPROC'. Cannot insert duplicate key in object 'TESTPROC'."
<?xml version="1.0" encoding="utf-16" ?><ResRoot xmlns="http://Final"><?M
SSQLError HResult="0x80040e2f" Source="Microsoft OLE DB Provider for SQL Ser
ver" Description="The statement has been terminated."?><?MSSQLError HResult=
"0x80040e2f" Source="Micro
soft OLE DB Provider for SQL Server" Description="Violation of PRIMARY KEY c
onstraint 'PK_TESTPROC'. Cannot insert duplicate key in object 'TESTPROC'."?
>false</ResRoot>".

Regards,
Ajay





[ Post a follow-up to this message ]



    Re: Catching the error code from procedure  
Christof


Report This Message To A Moderator Edit/Delete Message


 
04-26-04 12:35 PM

In your send port, set the "DeliveryNotification" to "Transmitted" that may
help.
Your orchestration will wait untill the message is succesfully transmitted.
If not, an exception will be thrown.

Kind regards,
Christof

"Ajay Mandke" <ajaym@emiratesbank.com> wrote in message
news:263F574B-CB36-4915-B272-BF80856B3AC8@microsoft.com...
> Hello,
>
> I am trying to develop and orchestration which is using SQL adapter for
inserting the records in DB. It uses an stored procedure. I want to know how
to get the success or failure status of insert operation. Currently I am
getting following error if duplicate record entry is tried. I dont get any
notification in orchestration and it terminates.
>
> Error message in Event viewer.
> The adapter "SQL" raised an error message. Details "HRESULT="0x80040e2f"
Description="The statement has been terminated."
> HRESULT="0x80040e2f" Description="Violation of PRIMARY KEY constraint
'PK_TESTPROC'. Cannot insert duplicate key in object 'TESTPROC'."
>  ?<?xml version="1.0" encoding="utf-16" ?><ResRoot
xmlns="http://Final"><?MSSQLError HResult="0x80040e2f" Source="Microsoft OLE
DB Provider for SQL Server" Description="The statement has been
terminated."?><?MSSQLError HResult="0x80040e2f" Source="Microsoft OLE DB
Provider for SQL Server" Description="Violation of PRIMARY KEY constraint
'PK_TESTPROC'. Cannot insert duplicate key in object
'TESTPROC'."?>false</ResRoot>".
>
> Regards,
> Ajay







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:10 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register