I have an application engine which has three steps: 1) peoplecode (load model user preferences) 2) do select & peoplecode (copy model user preferences into the preferences of a list of users) 3) peoplecode (append final results to the log)
the peoplecode action in the second step is executed in a loop for each user retrieved by the "do select" action.
if all the records and the values are correct, the program runs correctly. but i'm trying to test the cases when an error is encountered, and i have a problem in this case:
when i try to insert values that already exist in the database by doing it with &CompInt.Save() in the peoplecode inside the second step, this error appears:
Data being added conflicts with existing data. (18,2)
Error saving Component Interface. {Z09_CI_OPR_DEFN} (91,37)
Process 18256 ABENDED at Step Z09_USERPREF.MAIN.Step02 (PeopleCode) -- RC = ? (108,524) Message Set Number: 108 Message Number: 524 Message Reason: Process 18256 ABENDED at Step Z09_USERPREF.MAIN.Step02 (PeopleCode) -- RC = ? (108,524)
the problem is, after that, the peoplecode inside the second step finishes its execution but no more iterations are executed of that peoplecode for the following values retrieved by the 'do select' action. the correct behaviour should show the error and then continue with the following iterations.
does anyone know what could be happening? the On error parameter for the second step is set to "Ignore".