Hi Sivagelli,
Yeah I did debug step by step . Its working fine when I working step by step testing. Its working fine when i run it from Object studio also. When I am running it from process its not working properly. For one iteration its working and for next iteration its throwing above error.