Hi all i am facing the issue win filtering of query using linq every time its coming AsInumerable () error. Even i have chaged xmal file too but the issue is not resolve
Hi
Welcome to uipath community
kindly share your LINQ query if possible
are we trying to convert any datatype in that LINQ query
Cheers @akv
i will share you my screen shot
Is the query solved ?
If not do mark the post as unsolved
may i know what is mentioned in the right side of that assign activity
kindly share that expression
Cheers @akv
dt1.AsEnumerable.Where(Function(row) row(βNAMEβ).ToString.Trim=β1β).CopyToDataTable()
you were almost done
dt1.AsEnumerable.select(Function(row) row(βNAMEβ).ToString.Trim.Equals(β1β)).CopyToDataTable()
Cheers @akv
the reason is you were unable to filter it using that!!!
The LINQ used is to filter datatable and you need to provide it equal as what exactly
Have a great day
still confused can you write the query
Also uncheck the solution marked earlier
Can I have a clearer picture of the intend of your query!!!
- Are you basically trying to filer the NAME folder with the oneβs having β1β
- Are you just intending to remove the 1 if it exist in the column βNameβ
Fine if we want to get all the rows of column Name whose values equals to 1
then
we can use a simple assign activity like this
dt = dt.Select("[NAME] = β1β ").CopyToDatatable()
simple isnt it
Cheers @akv