Hi All
iam getting
ORA-01422: exact fetch returns more than requested number of rows.
while setting up UK bank branch.
Please,let me know if someone faced the similar issue.
Thanks
Priya
Software/Hardware used:
ASKED:
January 8, 2012 11:33 PM
UPDATED:
February 28, 2012 12:10 PM
Thanks Techtalker for the help.
But,actually we are setting the bank branch setup from frontend and we are not using any api or code,we just setting the bank branch from the bank form in R12
If this is a software you have successfully implemented in other branches, then the problem most likely lies in the data.
As mentioned by TechTalker, the program is getting 2 rows when one row is expected. If you have no access to the code, then you will have to review the data to solve it. Where ? We have no idea, as we don’t even know what software you are implementing, and the error message is not an application message, but an unhandled Oracle error.
“…the program is getting 2 rows…”
I meant: 2 or more rows.
Based on your reply, I would suggest that possibly your form through which you are doing an update, is trying to refetch the row after update and is getting two or more hits based on the SQL it is generating by default. This suggests that your application has the wrong key definition for the underly rowsource. For example, in Oracle Forms, you rely on constraints in the database, or on the PRIMARY KEY attribute of the fields on a block. You appliaction whatever it is might be doing the same kind of things. Thus you need to get your app updated to have the right key knowledge about the underlying rowsource. In forms this would be either to regenerate the form after a PRIMARY KEY change in the database, or to modify the correct set of form to indicate which field make up the PRIMARY KEY for the block.
This is just a guess though.