I have created a PeopleTools Application Engine program to insert/update employee National ID data in the PS_PERS_NID table. I am using a PeopleTools File Layout definition to insert data into a staging table and then using an Application Engine Do Select to read data from a stating table and load through a PeopleTools Component Interface (CI) definition via PeopleCode. When the data is clean it works fine. I have written a query in the exception peoplecode to update the data in the staging table with processing status and Error message.
When I tested it with an invalid SSN, it returns message Error changing value
, and causes the application engine to fail. I have all peoplecode in a try-catch block that gets created by default.
Can someone please provide sample logic code through I can capture error message in staging record without abending the process.