Getting this error while trying to sort a selectable grid - "" Co

Getting this error while trying to sort a selectable grid -
"" Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error at function 'todatasubset' [line 17]: Error evaluating function 'todatasubset' : Cannot sort type {www.appian.com/.../2009}Dictionary by field TrustCorrespondenceBy because it is a complex type {www.appian.com/.../2009}Text. Sort by fields of primitive types only."
I am calling a rule and passing the output from that rule(CDT array from an apply fn) as the input data for the grid. However it results in this error. The only I was able to work around the issue was by hard coding the field id for all the grid columns as "id" which is a part of the CDT array and is of type Integer.
Why am I not able to sort by the other fields - they are all of type 'Text'. Attaching the output of the todasubset call. Anyone faced this before....

SAILCode.txt

OriginalPostID-129684

OriginalPostID-129684

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data