Page 1 of 1
dotConnect can not catch no_data_found exception from Oracle?
Posted: Thu 01 Nov 2012 07:48
by a2z
I am using latest free version of dotConnect for Oracle. When call a store procedure and there is no_data_found exception, I cannot catch that in C#. When I change to Oracle ODP.net, every thing will be fine.
Because of I am using a free version or it is a bug?
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Thu 01 Nov 2012 12:52
by Pinturiccio
We have reproduced the issue. We will investigate it and notify you about the results as soon as possible.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Thu 01 Nov 2012 17:11
by a2z
I am using C# with VS2005, Oracle 10g R2 (10.2.0.5)
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Sat 03 Nov 2012 03:50
by a2z
Hi,
Was this bug fixed in the version released on 2/11 yet?
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Mon 05 Nov 2012 13:10
by Shalex
dotConnect for Oracle raises the
OracleConnection.InfoMessage event for ORA-1403 instead of throwing an exception. The reason is that ORA-1403 may be generated in regular situations as well as when a real error occurs. Try using the InfoMessage event and notify us about the results.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Tue 06 Nov 2012 04:06
by a2z
But I still can catch this with Oralce ODP.Net!!!! For me, it is just a normal exception like divided by zero, or unikey constraints violated ... Why do I need to treat no_data_found in a different way?
Shalex wrote:dotConnect for Oracle raises the
OracleConnection.InfoMessage event for ORA-1403 instead of throwing an exception. The reason is that ORA-1403 may be generated in regular situations as well as when a real error occurs. Try using the InfoMessage event and notify us about the results.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Wed 07 Nov 2012 10:30
by Shalex
The ORA-01403 message may be returned in regular situations, like at the end of data fetch. That's why our provider treats it as an informational message. The issue was discussed at
http://forums.devart.com/viewtopic.php?f=1&t=16919.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Thu 08 Nov 2012 11:26
by a2z
I am not satisfied with that. I have catch the exception and raise it again in my package.
Why Oracle ODP.Net treat this as a normal exception but Devart don't.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Tue 13 Nov 2012 16:26
by Shalex
We are investigating the situation concerning ORA-01403.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Fri 28 Dec 2012 08:25
by Shalex
The behaviour is changed: ORA-01403 is treated as an information message only for select statements. We will notify you when the corresponding build of dotConnect for Oracle is available for download.
Re: dotConnect can not catch no_data_found exception from Oracle?
Posted: Thu 17 Jan 2013 17:29
by Shalex
New version of dotConnect for Oracle 7.5 is released!
It can be downloaded from
http://www.devart.com/dotconnect/oracle/download.html (trial version) or from Registered Users' Area (for users with active subscription only).
For more information, please refer to
http://forums.devart.com/viewtopic.php?f=1&t=25664.