Question
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Last activity: 17 Apr 2018 21:55 EDT
Activity is not triggered from agent
Hi,
When I'm starting an agent IN SMA then related activity is not being triggered,what could be the reason and no any error getting in log.
Regards,
SorenTara
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
Is it a standard agent or advanced agent? If it is a standard agent, then the activity will only execute if there is a queue item to process.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Hi CarissaW,
It's standard agent and enabled in agent schedule as well even though I tried with advance agent & manually run it but still activity didn't getting triggered. I specified access group in security tab of agent rule with by pass authentication but it didn't invoke activity.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
What do you see when tracing the agent? Please enable all of the rulesets and the DB Query event type so you can see if there were queue items found for the standard agent to process.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
Hi CarissaW,
Since activity is not getting invoked hence nothing is displayed in tracer inspite of enabling everything, In log I can see below while restarting agent manually.
"Trying to restart agent queue in ruleset having queue number 0", This is for standard agent but when I'm changing it to advance agent still didn't get invoked.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
When you are using the standard agent, you should still see a query executed when you trace with the DB Query event type. This would show if a queue item was returned to be processed.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
EPAM Systems, Inc.
ES
Hi SORENTARA,
Thanks for posting on PSC.
Just basic check,
1. Is Agent enabled? Verify it under "Schedule" tab of Agent Schedule, whether "Enable this Agent" or "Enabled" checkbox is selected?
2. Is there any "AccessGroup" associated with "Security" tab, if so do you belong to that access group?
Agent Queue Processing
For each agent which is marked Enabled in the Agent Schedule, the Agent Manager checks its Queue Mode.
Legacy or Advanced Mode
1. Agent Manager runs the agent activity.
2. The agent sleeps for the specified interval.
Hi SORENTARA,
Thanks for posting on PSC.
Just basic check,
1. Is Agent enabled? Verify it under "Schedule" tab of Agent Schedule, whether "Enable this Agent" or "Enabled" checkbox is selected?
2. Is there any "AccessGroup" associated with "Security" tab, if so do you belong to that access group?
Agent Queue Processing
For each agent which is marked Enabled in the Agent Schedule, the Agent Manager checks its Queue Mode.
Legacy or Advanced Mode
1. Agent Manager runs the agent activity.
2. The agent sleeps for the specified interval.
3. When the sleep interval has passed, the agent wakes up and begins processing from Step 1 of this section.
Standard Mode
1. Agent Manager checks the agent’s queue for entries.
- If there are no entries in the queue, this agent will go back to sleep for the specified interval - without running the agent activity - and then check again.
2. If one or more entries are found in the queue, the system opens the first queue entry.
3. The system runs the agent activity for each item in the queue. For each entry:
- If agent processing succeeds, then the Agent Manager commits all deferred operations (saves or deletes) to the database.
- If agent processing throws an exception on any operations, then the Agent Manager does a rollback of all entries associated with that task.
NOTE: Unless other time settings are configured, the entries are processed in the order in which they were loaded into the agent queue.
4. When all entries are processed, the agent goes to sleep for an interval.
- If the Pattern for this agent is set to Periodic, then the agent sleeps for the amount of time specified in the Interval column.
- If the Pattern for this agent is set to Recurring, then the agent sleeps until the next scheduled wake-up time, as specified in the Advanced dialog boxes. (For details, see Agent Scheduling Intervals.)
5. When the interval has passed, the agent wakes up and begins processing from Step 1 of this section.
References:-
- http://bizzteck.blogspot.com/2014/04/agent-concept-in-pega.html
- https://docs-previous.pega.com/system-administration/overview-agent-processing
Hope it helps, kindly notify if it does by marking this post as answered.
Regards,
Asif
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Cognizant Technology Solutions
IN
HI Asif,
It's standard agent and enabled in agent schedule as well even though I tried with advance agent & manually run it but still activity didn't getting triggered. I specified access group in security tab of agent rule with by pass authentication but it didn't invoke activity.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/4f23cb6f-8e42-4cd0-84b7-8a2c29254946.jpg?itok=h1LqObS6)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689962000/4f23cb6f-8e42-4cd0-84b7-8a2c29254946.jpg?itok=h1LqObS6)
Accenture
IN
Hi SORENTARA,
If this help
1- Agent Manager checks the agent’s queue for entries
2- Set the Agent Schedule "Periodic / Recurring"
3- Enable the agent
4- Select advance
5- checkin and remove the node details Agent-->Nodes
6- Make sure you are running / tracing the agent from the main application not from the enterprise layer
7-or your current application has sufficient access to run or trace the agent.
Please let us know, if its working.
Regards,
Sumita