In data upload using CI, How to enable it to run next row of data when error occur. For example, 10 transactions required to upload to job record, error occur at 3rd row data, How to make it execute 4th, 5th row data?

Showing Answers 1 - 1 of 1 Answers

Deepak Gupta

  • Nov 7th, 2006
 

This can be acheived by adding the try catch block to catch the exception in the peoplecode. You can catch the exception and do desired processing or log the error. eg:

while <reading lines of data>

    try

         <all your ci collection related code goes here>

    catch Exception &ex

         <error handling>

    end-try;

end-while;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions