I need to filter DT1 based on CreateDate Column older than 5 days and create a DT2. So I am using Assign activity
DT2 = DT1.Select(“[CreateDate] <= “+DateTime.Parse(Date.Today.AddDays(-5).ToString).ToString +”#”).CopyToDataTable
sometime this returns 0 data rows and workflow fails on this assign activity. Error: The source contains no DataRows.
If above code returns some data rows, rest of the code is working fine as expected.
Can someone help me how can I handle if source returns 0 datarow? Thanks