Users cannot obtain lock on any work objects
SummaryThe application could not obtain a lock on a specific class in order to lock the work object.
Error Messages"Database-BadDBDef-Missing with the following parameters: pegarules
com.pega.pegarules.pub.database.BadDatabaseDefinitionException: Database-BadDBDef-Missing pegarules
Steps to ReproduceThe steps to reproduce the problem are unknown.
It requires special circumstances as described below.
The problem manifests when attempting to access a work object and the required esential pr4_base table entries are missing.
Root CauseA defect or configuration issue in the operating environment.
The table pr4_rule_vw contains rows with NULL in the pyRuleset column and pyClass values that are starting with RULE-. There is no good explanation of how this data got there.
There was a row in the table that contained the class group that was needed to obtain a lock. This is a Data-Admin-DB-ClassGroup class.
Also deleted was the Data-Admin-DB-Name for pegarules. This is shown in the log.
An operator with access to the Designer Studio portal and Allow Checkout flag unchecked, happened to click the Private checkout link. Rather than showing no checkouts, this returned a list of all rows in table pr4_rule_vw that had null in the pyRuleset column. This criteria was used because all rows in the table should be ruleset resolved rules that will always have a value in pyRuleset.
The operator then attempted to discard the checkouts using bulk action. This had the effect of removing all the Data- class objects from pr4_base that had invalid entries in the pr4_rule_vw table.
ResolutionApply HFix-34836.In addition all rows that have null in pyRuleset or don't have pyClass starting with RULE- should be removed from pr4_rule_vw table.
Published May 12, 2017 - Updated June 19, 2017