Hi…
i have a issue in datatime was not string error… in LINQ Query.
Code:
(From row In Dt_Attendance.AsEnumerable()
Let chkEmpty = String.Join("",row.ItemArray.Skip(2))
Let Attendance = If(String.IsNullOrEmpty(chkEmpty.Trim), "Leave","Present")
Let wrkHrs = If(Attendance.Equals("Present"), (Convert.ToDateTime(row("Work End Time").ToString) - Convert.ToDateTime(row("Work Start Time").ToString)).ToString("hh")+
"."+(Convert.ToDateTime(row("Work End Time").ToString) - Convert.ToDateTime(row("Work Start Time").ToString)).ToString("mm"),"00.00")
Let ra = New Object(){
Attendance,
If(IsNothing(row("SSFA_LoginTime")) OrElse String.IsNullOrEmpty(row("SSFA_LoginTime").ToString),"00.00.00",Convert.ToDateTime(row("SSFA_LoginTime").ToString).ToString("h.mm.ss")),
If(IsNothing(row("Work Start Time")) OrElse String.IsNullOrEmpty(row("Work Start Time").ToString),"00.00.00",Convert.ToDateTime(row("Work Start Time").ToString).ToString("h.mm.ss")),
If(IsNothing(row("Work End Time")) OrElse String.IsNullOrEmpty(row("Work End Time").ToString),"00.00.00",Convert.ToDateTime(row("Work End Time").ToString).ToString("h.mm.ss")),
wrkHrs}
Select Dt_Hd_Clone.Rows.Add(ra)).CopyToDataTable()
i created mail.xmal file in that file use flow chart activity used to differentiate the Sequence… in one sequence code in working fine without any issue… I created New sequence copy and paste same code without changes… i got the error…
How to find the error and fix it…
Thanks
Shyam