Support Article

Users with PegaRULES:User4 cannot create instances

SA-95347

Summary



Users with PegaRULES:User4 or PegaRULES:WorkMgr4 roles, are unable to create instances or System-Message-QueueProcessor instances.


ERROR MESSAGES

pyCommitError:
  • A commit cannot be performed because a deferred save of instance SYSTEM-MESSAGE-QUEUEPROCESSOR-DELAYEDITEM 625F596A-7A83-4644-B342-46D8C3B1EAD4 failed: code: <none> SQLState: <none> Message: <none>

Unable enqueue message to delayed queue <QueueProcessor> due to Database exception

 [jsse-nio-9443-exec-2] [TABTHREAD1] [                    ] [firmsReview:01.01.01] (WithErrorHandling.Work_.Action) ERROR wdvra94a0196.ABC.com|127.0.0.1 Level2Drafter.Confirms - Error in commit()
com.pega.pegarules.pub.database.DatabaseException: A commit cannot be performed because a deferred save of instance SYSTEM-MESSAGE-QUEUEPROCESSOR-DELAYEDITEM 625F596A-7A83-4644-B342-46D8C3B1EAD4 failed: code: <none> SQLState: <none> Message: <none>
    at com.pega.pegarules.data.internal.access.DatabaseImpl.failIfBadDeferredOperation(DatabaseImpl.java:2283) ~[prprivate-data.jar:?]
    at com.pega.pegarules.data.internal.access.DatabaseImpl.commit(DatabaseImpl.java:2125) ~[prprivate-data.jar:?]
    at com.pega.pegarules.data.internal.access.DatabaseImpl.commit(DatabaseImpl.java:2094) ~[prprivate-data.jar:?]
    at com.pegarules.generated.activity.ra_action_commitwitherrorhandling_663a578384fcc69efadf2473d5dbfc39.step4_circum0(ra_action_commitwitherrorhandling_663a578384fcc69efadf2473d5dbfc39.java:512) ~[?:?]
    at com.pegarules.generated.activity.ra_action_commitwitherrorhandling_663a578384fcc69efadf2473d5dbfc39.perform(ra_action_commitwitherrorhandling_663a578384fcc69efadf2473d5dbfc39.java:123) ~[?:?]
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2744) ~[prprivate-session.jar:?]
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11122) ~[prprivate-session.jar:?]
    at com.pegarules.generated.activity.ra_action_workcommit_831f9b05908e4e9b7562054e154dc90d.step3_circum0(ra_action_workcommit_831f9b05908e4e9b7562054e154dc90d.java:418) ~[?:?]
    at com.pegarules.generated.activity.ra_action_workcommit_831f9b05908e4e9b7562054e154dc90d.perform(ra_action_workcommit_831f9b05908e4e9b7562054e154dc90d.java:106) ~[?:?]
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2744) ~[prprivate-session.jar:?]
    at com.pega.pegarules.session.internal.mgmt.Executable.invokeActivity(Executable.java:11122) ~[prprivate-session.jar:?]
    at com.pegarules.generated.activity.ra_action_add_fbed7f5716dd358202c205432b9d9652.step8_circum0(ra_action_add_fbed7f5716dd358202c205432b9d9652.java:975) ~[?:?]
    at com.pegarules.generated.activity.ra_action_add_fbed7f5716dd358202c205432b9d9652.perform(ra_action_add_fbed7f5716dd358202c205432b9d9652.java:195) ~[?:?]
    at com.pega.pegarules.session.internal.mgmt.Executable.doActivity(Executable.java:2744) ~[prprivate-session.jar:?]
    at com.pega.pegarules.session.internal.mgmt.base.ThreadRunner.runActivitiesAlt(ThreadRunner.java:646) ~[prprivate-session.jar:?]
    at com.pega.pegarules.session.internal.mgmt.PRThreadImpl.runActivitiesAlt(PRThreadImpl.java:517) ~[prprivate-session.jar:?]



Steps to Reproduce

  1. Create a user with User4 or WorkMgr4 rule (not as Admin or SysArch roles).
  2. Execute the Queue-For-Processing method with a delay for processing configured. The system fails creating the instances of the SYSTEM-MESSAGE-QUEUEPROCESSOR-DELAYEDITEM class.


Root Cause



A defect in Pegasystems’ code or rules
The OOTB PegaRULES:User4 or PegaRULES:WorkMgr4 roles were missing the Rule-Access-Role-Obj (RARO) with Write access on the System-Message-QueueProcessor class.



Resolution



Perform the following local-change: 

Create a new Access Role To Object (A-R-O) to the System-Message-QueueProcessor-DelayedItem class on the App specific User or Manager Access Roles.


Suggest Edit

Published November 26, 2019 - Updated July 20, 2020

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.