Question
Getting an error "You lack acces required to run Rule-Obj-Activity.." when calling the activity from Java
I have an activity with a java step where i am calling an activity.PFB the code:
HashStringMap keys = new HashStringMap();
keys.putString("pxObjClass", "Rule-Obj-Activity");
keys.putString("pyClassName", "Rule-Obj-ReportDefinition");
keys.putString("pyActivityName", "RetrieveReportData");
ParameterPage paramPage = new ParameterPage();
tools.doActivity(keys, myStepPage, paramPage);
While running this activity standalone(Direct invocation enabled), it is throwing an error at the java step, showing You lack acces required to run Rule-Obj-Activity.RetrieveReportData
Can anyone help me with this?
Thanks,
Chiranjeet
***Updated by Moderator: Lochan. Removed user added Ask the Expert tag. Apologies for confusion, shouldn't have been an end-user option; updated Categories***
I'd first check if you have an access role that allows you to run the activity in the given class. Make sure you have a valid access role to object instance. Also, check if there is any access deny rule that may block this operation.
If this is an ootb activity, normally SysAdmin4 role would allow it. Please double check.