Review generation fails with 'ORA-01427: single-row subquery returns more than one row' in RSA Identity Governance & Lifecycle
Originally Published: 2016-08-26
Last Modified: 2026-10-30
Article Number
000044063
Applies To
  • 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, RoleMemberships Table
  • Database: Oracle Database (avuser schema)
  • Platform: All

 

Issue

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.log shows the following key errors:

 

Versions prior to 7.0.1 P01:

 

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 1
Cause

Duplicate 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

 

Resolution

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.

  1. Upgrade RSA Identity Governance & Lifecycle to version 7.1.1 P05 or 7.2.0 following your standard upgrade procedure.
  2. After the upgrade completes, confirm the migration script ran successfully by checking the following log file:
    $AVEKSA_HOME/wildfly/standalone/log/migrate.log

    Look for the following entry:

    Removed XX duplicate records in RoleMemberships table

    NOTE: XX represents the number of duplicate records removed. If the value is 0, no duplicates were found — this is also a successful outcome.

  3. Verification: Navigate to Reviews > Definitions > <review name> > Edit Definition > Contents tab and enable Include Roles. Generate the review and confirm it completes successfully without the ORA-01427 error.
Workaround

If you have users with duplicate roles, there is a cleanup script available to remove the duplicate roles. 

  1. First, determine if you have duplicate roles.
  1. Download the attached ACM-97300_DupsDetection.sql script to your computer.
  2. Login to your RSA Identity Governance & Lifecycle application server as the oracle user.
  3. Copy ACM-97300_DupsDetection.sql to $AVEKSA_HOME.
  4. $ sqlplus avuser/<password>
  5. SQL> @ACM-97300_DupsDetection
  1. If the above script returns results, please contact RSA support and mention this RSA Knowledge Base Article ID 000033888 for reference. 


 

Notes

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.

Attachments
If the attachment does not open when clicked, please refresh the page and try again. You must be logged into view the file(s).