Assign: Collection was modified; enumeration operation might not execute

@learning_sourav

Try the below expression

dtOutput.AsEnumerable.select(function(a) dtOutput.clone.loaddatarow({a(0).tostring,a(1).tostring,a(2).tostring,a(3).tostring,if(a(2).tostring.trim.equals(a(3).ToString.trim),“true”,“false”)},false)).CopyToDataTable

1 Like