Discussion

Error: you lack access to run activity

Work- • SendSimpleEmail When trying to call SendSimpleemail (Final rule). Sometimes we face with an access error. - Unable to authorize activity execution: RULE-OBJ-ACTIVITY WORK- SENDSIMPLEEMAIL #20060616T150745.190 GMT com.pega.pegarules.pub.PRRuntimeException: Error: You lack access required to execute RULE-OBJ-ACTIVITY WORK- SENDSIMPLEEMAIL #20060616T150745.190 GMT. Could any kindly throw light on why that might be? I see no security tab settings on the activity that might prevent it from doing so. thank you.

***Updated by Moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
February 13, 2009 - 1:32pm

The Work-.SendSimpleEmail activity has a pyActivityRoleList with PegaRULES:SysAdmin4 defined. This is part of the old security model and the Property is no longer applicable to the PRPC security model.

You can not see the setting in the UI because the Activity Form was updated and the field(s) were removed.

Simple Workaround:
==================

The following workaround was tested internally and provided to other clients.

1) Copy & Rename Work-.SendSimpleEmail into application class
2) Check out activity
3) Create a temporary activity to open the checked out record, remove the <RulePage>.pyActivityRoleList(1) page, save/commit record.
4) Refresh checked out activity, save/check in.

February 4, 2009 - 6:07pm

As far as I know, there might be two possible reason for this:
1.You have checked the Authenticate checkbox in your activity, but your activity was run in unauthenticated requestors, eg: it is attempted to be called in an agent.
2.This activity is not within the ruleset list of the requestor.

Hope it helps.

February 5, 2009 - 11:12am

After some more research. This is what I found in the Java code. For whatever reason, it needs the user calling this activity to have a pegarules:sysadm4 role.

private static final Object[] pz_PrologParms_circum0 = { "EnterpriseWork", "RULE-OBJ-ACTIVITY Client VIDYTESTSENDSIMPLEEMAIL #20090205T160306.819 GMT", Boolean.TRUE, Boolean.FALSE, "PegaRULES:SysAdm4", "ACTIVITY" };

VIDYTESTSENDSIMPLEEMAIL : is an activity SavedAS from the SendSimpleEmail

an Excerpt of the XML file of the activity has this

<pyActivityRolesList REPEATINGTYPE="PageList">
- <rowdata REPEATINGINDEX="1">
<pxObjClass>Embed-Rule-ActivitySecurity</pxObjClass>
<pyActivityRole>PegaRULES:SysAdm4</pyActivityRole>
</rowdata>
</pyActivityRolesList>

how is that set on the activity and never shows up on the UI?

How is this possible?

Please let me know,

thanks,