JoseKreif
Member
Progress Version = 10.2b
Operating System = Linux, RedHat Enterprise
We are apparently experiencing a "More than one
found with a UNIQUE find" when the program runs.
I've checked the source code and the find statement uses "No-Error", so that error should not show up. I've also put some logic in there to show if it's happening there, and so far so good.
We have a program thatcan send emails. So I call that to email myself so I know when it happened and with what values for the find.
This error must be happening else where. I've used keywords to search the source code in the repository. I've looked up and down. A couple other programmers have looked too.
--
I'm wondering if it is possible to catch the error from the parent program.
Our parent program is called when user selects it on the menu. It calls 2 programs
Would it be possible to wrap those 2 in a error catch? like
Operating System = Linux, RedHat Enterprise
We are apparently experiencing a "More than one
I've checked the source code and the find statement uses "No-Error", so that error should not show up. I've also put some logic in there to show if it's happening there, and so far so good.
Code:
find i1w where i1w.i1anbr = oe_lns.i1anbr and
i1w.plntno = oe_hdr.os_plntno no-error.
We have a program thatcan send emails. So I call that to email myself so I know when it happened and with what values for the find.
Code:
if avail i1w then
...
else if ambiguous i1w then
run [email program].
else
...
This error must be happening else where. I've used keywords to search the source code in the repository. I've looked up and down. A couple other programmers have looked too.
--
I'm wondering if it is possible to catch the error from the parent program.
Our parent program is called when user selects it on the menu. It calls 2 programs
Code:
run ar/rpu.p.
run ar/rr.p.
Would it be possible to wrap those 2 in a error catch? like
Code:
try {
run ar/rpu.p.
run ar/rr.p.
}
catch TheError as Progress.Lang.SysError:
v-error-msg = TheError:GetMessage(1).
if v-error-msg = "More than one i1w records found by a unique FIND.
(3166)" then
/* EMAIL MYSELF THE VALUES USED FOR FIND */
end catch.
Last edited: