getting error on sorting when grid contains toDatasubset

Certified Senior Developer

Interface Definition: Expression evaluation error at function a!gridField [line 212]: Invalid field identifier: "#"urn:appian:record-field:v1:f93971d1-a676-475d-bcde-b5eb7ffea268/66d74798-e23e-48d6-8801-b307250c1052""

I am getting data from external system and mapping it into Appian. I am mapping it to appian record since will be storing it using write to record.

I wanted to do sorting on all the columns using code below but getting this error when trying to sort:

  Discussion posts and replies are publicly visible