Question

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****

Comments

Keep up to date on this post and subscribe to comments

December 31, 2018 - 10:41am

Hello,

Can you verify if the AccessGroup associated with your Agent requestor does have the required access for said activity.

January 2, 2019 - 8:55am
Response to MarcLasserre_GCS

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.

 

January 2, 2019 - 9:03am
Response to SOUGATA88

Just another point.

The agent activity is working fine if I am commenting the step of calling pxCallRetrieveReportData / Rule-Obj-Report-Definition.pxRetrieveReportData 

January 2, 2019 - 9:10am
Response to SOUGATA88

Actually,

Can you work with RunReport activity instead on your Agent. I wouldn't recommend to work pxRetrieveReportData directly.

January 2, 2019 - 9:38am
Response to MarcLasserre_GCS

Hi Marc,

Sorry. I didn't understand the point clearly. Are you suggesting me to leave the Agent approach?

January 3, 2019 - 5:10am
Response to SOUGATA88

No, of course not. I was just wondering if you could change the activity to use RunReport instead.

Pega
November 18, 2019 - 11:56pm

Pega
November 29, 2019 - 2:13am

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.