See the code snippet. All these messages come back with no error.
Main Topics
Browse All TopicsI have an application that does not load the form if the record is in use by another user. I am trying to get it to give a message to the user so it is clear what is happening and they can come back to the record later. So far so good - thanks to Experts Echange for getting me that far. I looked at other solutions, and, based on them, put code in my on-error trigger so I could verify what code I am getting - I am expecting sqlcode -54. Problem is - although it attempts to lock the record and fails - I get ORA-0000 normal, successful completion
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
Maybe you have to print out error_text or code first of all,
because there is a chance that it is reset when you call the
built-in function 'message'.
We usually have the following few lines in the
beginning of an ON-ERROR-TRIGGER:
DECLARE
v_error_text VARCHAR2(255) := error_text;
Thus we can be safe that the error_text has not been reset
until we need to check it (we check the v_error_text insted of
error_text then).
Thank you - that is not exactly what fixed the problem, but it got me looking at where I am locking the record. I ended up putting it in when-validate-item of the key field I am using in my "select for update nowait" statement. So .. I am issuing my lock from the when-validate-item and checking the result there as well. Very good solution at this point.
Business Accounts
Answer for Membership
by: MarkusIdPosted on 2009-08-31 at 09:50:52ID: 25224292
Hi,
Have you also checked the error_text and error_code variables?