While executing the the last part of the code, I am getting following error. Please help. I am attaching both the code snippet and the error. Thanks  
While executing the the last part of the code, I am getting following error. Please help.
I am attaching both the code snippet and the error.
Thanks

