Why this error when calling queryRecordType in an Expression Rule?

Certified Senior Developer

Hi,

I have a RecordType "Project" (no Sync) used in a whole application that works fine (the source is a MySQL View which works fine).
But when I tried to call this from an Expression Rule (please see the code below) I obtain this error :

"Expression evaluation error at function a!queryRecordType: A null parameter has been passed."

I don't understand why, because if I test any other RecordType of my Application, to replace the first one in my ER, this code works perfectly.


Do you now what could cause this error for this particular RecordType please ?  (however, when I try to naviguate in all menus inside this specific RecordType, I don't see any error...)

a!queryRecordType(
   recordType: recordType!Project,
   fields: {},
   pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 1
   )
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data