- Product: RSA Identity Governance & Lifecycle
- Affected Versions: 6.9.1, 7.0.0, 7.0.1, 7.0.2, 7.1.0, 7.1.1
- Fix Available In: 7.1.1 P05 and later; 7.2.0 and later
- Component: User Access Review Generation, Include Roles Option,
RoleMembershipsTable - Database: Oracle Database (
avuserschema) - Platform: All
User Access Review generation fails with an ORA-01427 Oracle error when the Include Roles option is enabled in the review definition.
Observable symptoms:
- Generating a User Access Review with the Include Roles option enabled — via Reviews > Definitions >
<review name>> Edit Definition > Contents tab > Include Roles — causes the review generation to fail - Generating the same review without the Include Roles option succeeds without errors
- The
aveksaServer.logshows the following key errors:
02/26/2016 16:08:48.606 ERROR (Exec Task Consumer#0)
[com.aveksa.server.review.ReviewDefinitionVersion]
FAILED method=generateReport subTask=Get entitlements for review 7416
com.aveksa.server.db.PersistenceException: java.sql.SQLException:
ORA-20126: The creation of reviews failed.
ORA-20126: The creation of reviews failed.
Stored Procedure:Parse_User_Review execution aborted.
ORA-20126: The creation of reviews failed.
Stored Procedure:Parse_Roles_In_User_Review execution aborted.
ORA-01427: single-row subquery returns more than one row
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 10101
Stack:
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 10101
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSE
Stored Procedure:Generate_Review execution aborted.
Stack:
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 373
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 274
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 630
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1749
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1895
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1537
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1502
ORA-06512: at line 1
Versions after 7.0.1 P01:
06/07/2018 09:41:00.870 ERROR (Exec Task Consumer#0)
[com.aveksa.server.review.ReviewDefinitionVersion]
FAILED method=generateReport subTask=Get entitlements for review 7099
com.aveksa.server.db.PersistenceException: java.sql.SQLException:
ORA-20126: The creation of reviews failed.
ORA-20126: The creation of reviews failed.
Stored Procedure:Parse_User_Review execution aborted.
ORA-20126: The creation of reviews failed.
Stored Procedure:Parse_Roles_In_User_Review execution aborted.
ORA-01427: single-row subquery returns more than one row
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 10078
Stack:
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 10078
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSE
Stored Procedure:Generate_Review execution aborted.
Stack:
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 373
ORA-06512: at "AVUSER.REVIEW_DEFINITION_PARSER", line 274
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 630
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1751
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 903
ORA-06512: at "AVUSER.ERROR_HANDLER_PKG", line 917
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1897
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1537
ORA-06512: at "AVUSER.ENTITLEMENT_REVIEW_PKG", line 1502
ORA-06512: at line 1Duplicate role assignments exist in the RoleMemberships database table, causing the review generation query to return multiple rows where only one is expected.
When a User Access Review is generated with the Include Roles option enabled, the database procedure parses role memberships using a subquery that expects each user-role combination to appear exactly once
This issue is permanently resolved in the following versions:
- RSA Identity Governance & Lifecycle 7.1.1 P05
- RSA Identity Governance & Lifecycle 7.2.0
The fix introduces additional database-level checks to prevent duplicate role entries from being created. A migration script also runs automatically during upgrade to identify and remove any existing duplicate records in the RoleMemberships table.
CAUTION: Upgrading RSA Identity Governance & Lifecycle in a production environment is a significant change. Ensure you have planned a maintenance window, backed up your database, and tested the upgrade in a non-production environment before proceeding.
NOTE — Not ready to upgrade? If you cannot upgrade immediately, proceed to the Workaround section for a SQL-based detection and cleanup procedure.
- Upgrade RSA Identity Governance & Lifecycle to version 7.1.1 P05 or 7.2.0 following your standard upgrade procedure.
- After the upgrade completes, confirm the migration script ran successfully by checking the following log file:
$AVEKSA_HOME/wildfly/standalone/log/migrate.logLook for the following entry:
Removed XX duplicate records in RoleMemberships tableNOTE:
XXrepresents the number of duplicate records removed. If the value is0, no duplicates were found — this is also a successful outcome. - Verification: Navigate to Reviews > Definitions >
<review name>> Edit Definition > Contents tab and enable Include Roles. Generate the review and confirm it completes successfully without theORA-01427error.
If you have users with duplicate roles, there is a cleanup script available to remove the duplicate roles.
- First, determine if you have duplicate roles.
- Download the attached ACM-97300_DupsDetection.sql script to your computer.
- Login to your RSA Identity Governance & Lifecycle application server as the oracle user.
- Copy ACM-97300_DupsDetection.sql to $AVEKSA_HOME.
- $ sqlplus avuser/<password>
- SQL> @ACM-97300_DupsDetection
- If the above script returns results, please contact RSA support and mention this RSA Knowledge Base Article ID 000033888 for reference.
The above errors contain the G&L defined Oracle error: ORA-20126 which is raised when G&L review generation process fails, the main error in this KB is one reported by:
ORA-01427: single-row subquery returns more than one row
Other Review generation failures that don't have an ORA-01427 failure and / or are happening in versions above G&L 7.2.0 would not be addressed by this article.
Related Articles
Review Refresh fails with 'ORA-00607 Internal error while making a change to a data block' in RSA Identity Governance & Li… 116Number of Views Review results are removed from the system after deleting a review definition in RSA Identity Governance & Lifecycle 30Number of Views Review generation fails for all review types with an 'ORA-01792: maximum number of columns in a table or view is 1000' err… 605Number of Views Role Review Member and/or Entitlement counts are incorrect preventing Role Review completion in RSA Identity Governance & … 544Number of Views Review overall status bar is not updated when a review is completed in RSA Identity Governance & Lifecycle 123Number of Views
Trending Articles
RSA Authentication Manager 8.9 Patches and Hotfixes Readme RSA Authentication Manager 8.9 Setup and Configuration Guide RSA MFA Agent 2.5 for Microsoft Windows Installation and Administration Guide RSA Authentication Manager Patch Updates How to manipulate imported RSA SecurID Software Token(s) on an iPhone or iPad device