187632 - no subject - [startIndex=0, batchSize=0, sort=, total

[startIndex=0, batchSize=0, sort=, totalCount=0, data=, identifiers=, name=Card Activation Task Report, description=Task report, columnConfigs=, errorMessage=Empty context passed in for report Card Activation Task Report [id=16310]. (APNX-1-4156-000)]

Getting the above error when using the following code:
"a!queryProcessAnalytics(report:cons!TASK_REPORT)"

It is a Task Report and I have set its context process model as well.

OriginalPostID-187632

  Discussion posts and replies are publicly visible

Parents
  • @ishaanim Though you have set the context in the report, you need to set the context again while invoking the a!queryProcessAnalytics() in case of contextProcessModels. This is not true all the times, for instance contextUsers doesn't require a value and a!queryProcessAnalytics() takes the context of the user evaluating the expression. I would like to suggest to go through the 'Notes' section in the documentation at https://forum.appian.com/suite/help/7.11/System_Functions.html#a!queryProcessAnalytics.28.29 which mentions the points discussed above.
Reply
  • @ishaanim Though you have set the context in the report, you need to set the context again while invoking the a!queryProcessAnalytics() in case of contextProcessModels. This is not true all the times, for instance contextUsers doesn't require a value and a!queryProcessAnalytics() takes the context of the user evaluating the expression. I would like to suggest to go through the 'Notes' section in the documentation at https://forum.appian.com/suite/help/7.11/System_Functions.html#a!queryProcessAnalytics.28.29 which mentions the points discussed above.
Children
No Data