issue with task report trying to display data

Hi,
I was wondering if anyone has encountered this before. I have a task report and I am getting the error below. I have included a snippet of the a!gridTextColumn statements. The first column that displays the "Org Id" works fine. In the next column, I am trying to apply a rule that will get the Org Name from the Org Id.
Not sure why it doesn't like it.

Could not display interface. Please check definition and inputs.
Interface Definition: Expression evaluation error in rule 'rct_getorgnamebyorgid': The load function cannot be used within rules called by looping functions. Instead, pass the necessary variables via rule inputs or use a!applyComponents.



a!gridTextColumn(
label: "Org Id",
field : "c13",
data: index(local!filteredTaskReport.data,"c13",{}),
links : apply(rule!RCT_createRecordLinkMPSelfCert,index(local!filteredTaskReport.data,"c13",{}))
),
a!gridTextColumn(
...

OriginalPostID-261607

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi Gary,

    I think there a load() function inside rule!RCT_getOrgNamebyOrgId() which you are using in a fn!apply() function.
    Due to this you are getting the error. Do have any necessacity of load() function inside rule!RCT_getOrgNamebyOrgId() if not try to remove it or else make all local variable calculations outside the rule!RCT_getOrgNamebyOrgId() rule and pass them as inputs. I hope this will help you
Reply
  • 0
    Certified Lead Developer
    Hi Gary,

    I think there a load() function inside rule!RCT_getOrgNamebyOrgId() which you are using in a fn!apply() function.
    Due to this you are getting the error. Do have any necessacity of load() function inside rule!RCT_getOrgNamebyOrgId() if not try to remove it or else make all local variable calculations outside the rule!RCT_getOrgNamebyOrgId() rule and pass them as inputs. I hope this will help you
Children
No Data