I have created a job scheduler and activity to purge record older than 30 days from a data table. The activity uses a data page with report definition as its source to get the 30 days older records. Despite configuring the Job Scheduler, it’s not executing the activity automatically. However, when I trigger the activity manually, it works fine( records older than 30 days were purged in Data table and sent email notification as expected).
How to get it executed by Job scheduler. Kindly suggest a solution.
Please verify that the Access Group you have selected is having access to the Ruleset version of the activity or you can use the System Runtime Context and mention your application and version in it.
@GitarthaD33 Yes, the access group have access to the Ruleset version of the activity and also I have mentioned my application and version in the System Runtime Context as well.
When I checked the Admin studio, there are some execution, that got failed due to RuleNotFoundException: Failed to find a ‘RULE-OBJ-ACTIVITY’ with the name ‘Activity name’ that applies to ‘Class Name’. There were 1 rules with this name in the rulebase, but none matched this request.
But both the rules Job Scheduler and Activity has been created in the same ruleset and in the same class…
I could not find any mismatch in the ruleset or class.
For example - pzcaptureworkobjectsforautomaticcleanup pxObjClass: Rule-Declare-Trigger pxInsID: !PZCAPTUREWORKOBJECTSFORAUTOMATICCLEANUP (this is just an example, please use the data for the rule that you have in your environment)
Run the ‘Try it out’ button. A successful call should return 200 response code.
Please let me know even after running this, if you are still experiencing issues with Rule Cache.
Hi, I have revalidated and saved my activity rule. And also follow the steps to clear cache.. While executing it with exact class and rule name, I got response code 401.
I meant the stack trace for this exception:RuleNotFoundException: Failed to find a ‘RULE-OBJ-ACTIVITY’ with the name ‘Activity name’ that applies to ‘Class Name’. There were 1 rules with this name in the rulebase, but none matched this request
Thanks for all the discussions and ideas. I have resolved the issue. The access group which I have mentioned in the Job scheduler is with lower application version. Since I have the activity rule created in the highest application version, it got failed.
I have updated that and resolved it. Thanks for the support!!