Error when using function todatasubset() : Expression evaluation error at function 'todatasubset' [line 58]: Invalid field identifier: "6337; 6348; 6353; 6431; 6432; 6619"

Hi everyone,

I'm having above error message after using a!todatasubset(), my code is as below: 

local!pagingInfo: a!pagingInfo(
    1,
    1,
    a!sortInfo(
      field: local!emailsRelatedToCase.id,
      ascending: false
    )
  ),
  local!datasubset: todatasubset(local!emailsRelatedToCase,local!pagingInfo
  ),

within that, local!emailsRelatedToCase stores data queried from a database to get email IDs and relatedCaseId, sentFrom, sentTo, dateTime for each email.

Did anyone see this error before?

Thanks a lot,

  Discussion posts and replies are publicly visible