07-07-2015, 12:11 AM
Do you see an active row in sheet 2 before hitting "Datatable.GetSheet(2).AddParameter "username","Ritika" " this line of code. Then might have entered some value in A1 cell. Try to delete the row and then try again.
Thanks,
SUpputuri
SUpputuri