Hi Vinoth,
Did you debug it for exceptions (caution with empty catch blocks)? It is pretty straight forward function. Let us know more about it.
By the way, Refer to the Exceptions section in the reference document for this function overload. Maybe you will figureout a possible cause.
Best regards,
Kinjal.