Question
Ernst & Young LLP
NL
Last activity: 29 Nov 2019 2:13 EST
Agent is throwing NullPointerException when calling pxCallRetrieveReportData from agent activity
Requirement: I have to generate a report from agent activity.
Issue: When calling pxCallRetrieveReportData from agent it is throwing NullPointerException.If I am running the activity stand alone its working fine. Tried with Rule-Obj-Report-Definition.pxRetrieveReportData . But it is not working.
***Edited by Moderator Marissa to update platform capability tags****
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
FR
Hello,
Can you verify if the AccessGroup associated with your Agent requestor does have the required access for said activity.
Ernst & Young LLP
NL
Hi Marc,
Thanks for your input.
I tried both of the options.
1.Without access group
2. With Administrator access group.
But none of the options are working.
Ernst & Young LLP
NL
Just another point.
The agent activity is working fine if I am commenting the step of calling pxCallRetrieveReportData / Rule-Obj-Report-Definition.pxRetrieveReportData
Pegasystems Inc.
FR
Actually,
Can you work with RunReport activity instead on your Agent. I wouldn't recommend to work pxRetrieveReportData directly.
-
Kensho Tsuchihashi SRIKANTH YERMANI
Ernst & Young LLP
NL
Hi Marc,
Sorry. I didn't understand the point clearly. Are you suggesting me to leave the Agent approach?
-
Edgar Iván Vega López
Pegasystems Inc.
FR
No, of course not. I was just wondering if you could change the activity to use RunReport instead.
Pegasystems Inc.
IN
Hi,
Can you please check the below article
Pegasystems Inc.
IN
Hi,
Can you please try to save all the activity in the same class with the same ruleset. Agent usually will not be able to find the activities because of rule resolution.