In data upload using CI, How to enable it to run next row of data when error occur. For example, 10 transactions

Posted by Cynthia Rachel
Comments (1)
October 29th, 2008

This can be achieved by adding the try catch block to catch the exception in the people code. 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;

Comments (1)

guri - January 11th, 2011

Can you please explain (if possible give an example) what will you do exactly in the exception handling part

Comments are closed.