Hi @balupad14
congratulations and thanks for your great activity packages. I am using Balareva.DataTable.Activities v2.0.2 with UIPath Studio Pro 2020.4.1 Community License Stable.
I have a bug to report in the Group By:
I have a datatable containing just one column of strings. I need to count the occurrences of the strings. I tried both Group By Aggregation and Native Group Aggregation, they work well in most cases. But in one particular case they fail: if the datatable contains string with apostrophes. For instance if the datatable contains the following three rows:
Piemonte
Valle D’Aosta
Lombardia
the group by fails and produces the following message: missing operand after ‘AOSTA’ operator.
If there are no such apostrophes in my datatable, everything works perfectly.
If it helps, here are the exception details for the Native Group Aggregation:
RemoteException wrapping System.Exception: VALLE D’AOSTA,
System.Data.SyntaxErrorException: Syntax error: Missing operand after ‘AOSTA’ operator.
at System.Data.ExpressionParser.Parse()
at System.Data.DataExpression…ctor(DataTable table,String expression,Type type)
at System.Data.Select…ctor(DataTable table,String filterExpression,String sort,DataViewRowState recordStates)
at System.Data.DataTable.Select(String filterExpression,String sort,DataViewRowState recordStates)
at System.Data.DataTable.Compute(String expression,String filter)
at DataTableExtensions.NativeGroupAggregation.GroupBy()
at DataTableExtensions.NativeGroupAggregation.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,ActivityExecutor executor,BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor,BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor,BookmarkManager bookmarkManager,Location resultLocation)
Can you please offer a workaround and/or fix the issue? Thanks!
Stefano