Hi Jothi,
Can you check if value in Test column having comma (,) for any of the record.
Try below
RowCount= If ([Event Detail Type]="Number of Rows" and Not Isnull(Trim([Event Detail Value]))) Then Replace(Trim([Event Detail Value]));",";"") Else "0"
ToNumber(RowCount)
-Anuj