Support Article
InvalidReferenceException from Report Definition run by agent
SA-20848
Summary
Developer has created an activity which he is trying to have run by an agent on a schedule. The activity has a step to run a report defintion. This step is failing. Interestingly, the same report definition is scheduled to run though the report browser, and here it runs without a problem.
Error Messages
2016-02-15 01:59:59,798 [PegaWorkManager : 10] [ STANDARD] [ ] [ PegaRULES:07.10] ( rd.resolve.SqlReportResolver) ERROR - An error occured during resolving the report definition - InvalidReferenceException .FirstName Property 'FirstName' does not exist on class 'BNS-CB-CCOB-Work'
com.pega.pegarules.data.internal.rd.reference.InvalidReferenceException: InvalidReferenceException .FirstName Property 'FirstName' does not exist on class 'BNS-CB-CCOB-Work'
...
Steps to Reproduce
1) Schedule an agent to run an activity which includes a step to run a report.
Root Cause
An issue in the custom application code or rules:
The access group was not specified for the Agent Schedule instance

The following points of information my also be of help in diagnosing similar cases:
1) When someone manually updates the AgentSchedule instances, they stop being in sync with the Agent. So any changes done to Agent access group after this will not sync to Agent schedule instances.
2) Advanced agents use the access group field specified in the Agents security tab. If no access group is specified, it uses the default access group specified in the Batch requestor type. Normally it is PRPC:Agents access group but it can be overridden.
Resolution
Perform the following local-change: Specify the appropriate access group on the Security tab of the Agent Schedule instance.
Published March 16, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.