Thanks for the inputs!! Problem is the with code above when i comment this code everything works fine.. there is something missing or wrong with this code.
I think there is some standard statement missing which is making the standard notes history Blank!