What is the type we need to select in the try catch when No data result came.
example: We have a data table and I filtered the data table using LINQ.
after filter we will get 0 rows that time we will get an error in assign activity.
I suggest you to surround Trycatch around the Assign activity which you given LINQ condition. In catch block you can mention System.Exceptions to catch the Generic exception and log it if you want to.
Hi copy_writes,
Please try to check the condition before using an If activity. i.e. you can use this demo condition to validate if your dt after apply the filter contains data rows:
Hello, it would be easier if you share withs which can of filter you apply with linq.
For instance if you use First() or Single(), you need to be sure that you will get at least one for First() and only one for Single() instead use FirstOrDefault, SingleOrDefault…
Also to check if a collection is empty please use