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
Try saving the record type again then query it. By the description it doesnt look like any configuration issue, so try in other ways. You can also try to use the Query Editor to generate the code and see if it works.
Thanks a lot Harsha for your idea.by using the editor, the batchsize was set to 100, and the generated code worked fine.Testing with batchsize = 2, it was working too, but I could see a View incoherence : the identifier of the first record is null.so that explains now why this error occured when batchsize = 1Regards
cedric01 said:the identifier of the first record is null.so that explains now why this error occured when batchsize = 1
Makes sense!