ReportServiceGroup fails to initialize and "DatabaseException...." occurs after upgrade to SAS® Viya® Stable 2025.07


ReportServicesGroup fails to initialize after you upgrade to SAS Viya Stable 2025.07. 

Resolution

If you encounter this issue, do the following:

  1. Restore to a backup. Note: The patch does not correct environments that are already broken. It addresses only the issue with the update process to prevent the issue from occurring. This is why you must restore to an earlier SAS Viya version and restore a backup for that version. See Backup and Restore: Recover from a Disaster
     
  2. Upgrade again using the instructions in Update to a New Version.

Note: The patch was released on July 24, 2025.

Symptoms

In this scenario, the following symptoms occur:

 liquibase.exception.DatabaseException: ERROR: could not create unique index "report_data_pk"
 Detail: Key (report_id)=(576160ef-d652-463c-b0dc-f0ada4a2fbd0) is duplicated. [Failed SQL:
 (0) ALTER  TABLE reportservicesgroup.report_data ADD CONSTRAINT report_data_pk
 PRIMARY KEY (report_id)]

Affected Environments

You encounter this issue if the following is true:

Note: It does not matter how many successful upgrade steps you take in between your initial release and the final upgrade to SAS Viya Stable 2025.07. The issue occurs when you upgrade to SAS Viya Stable 2025.07.