upgrade_identityiq_tables.sqlserver(SQL Server 2022) script errors during upgrade from 8.4 to 8.5

Server version name: Apache Tomcat/9.0.85
Operating System: Windows Server 2022 10.0 (amd64)
Java: jdk-11.0.24
IdentityIQ: 8.5 (During 8.4p2 to 8.5 upgradation)
Database: SQL Server 16.0 (SQL Server 2022)

During IdentityIQ 8.4p2 to IdentityIQ 8.5 upgradation/migration, getting following schema upgrade errors:
DB script name: upgrade_identityiq_tables.sqlserver

Stack Trace:

Caution: Changing any part of an object name could break scripts and stored procedures.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 98]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 105]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Caution: Changing any part of an object name could break scripts and stored procedures.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 111]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Caution: Changing any part of an object name could break scripts and stored procedures.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 117]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Caution: Changing any part of an object name could break scripts and stored procedures.
Caution: Changing any part of an object name could break scripts and stored procedures.
Caution: Changing any part of an object name could break scripts and stored procedures.
Caution: Changing any part of an object name could break scripts and stored procedures.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 132]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 135]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Msg 15248, Level 11, State 1, Procedure sp_rename, Line 367 [Batch Start Line 138]
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong.
Msg 1913, Level 16, State 1, Line 143
The operation failed because an index or statistics with name 'spt_hac_app_name_ci' already exists on table 'identityiqah.spt_hist_account_capture'.
Msg 1913, Level 16, State 1, Line 146
The operation failed because an index or statistics with name 'spt_hist_pvr_deleted' already exists on table 'identityiqah.spt_policy_violation_remediation_capture'.

(1 row affected)

(1 row affected)

Completion time:2025-08-08TO7:34:29.6653439+04:00

@pattabhi

Please check the bug below, where I’ve provided the updated entries with the correct index syntax, especially for the SQL Server (.sqlserver) script.

IdentityIQ 8.5 upgrade script syntax errors - Feedback / Bugs - SailPoint Developer Community

1 Like

Thanks a lot @iiq-isc, I will check this out and get back to you.

Hi @iiq-isc

I have validated this on my local MySQL setup. Tomorrow, I’ll attempt to fix it in the SQL Server script (upgrade_identityiq_tables.sqlserver) and provide you with an update.

Hi @iiq-isc

The recommended syntax change worked fine and completed the migration in the Dev environment. A sanity check was performed after the migration, and everything looks good.

upgrade_identityiq_tables_INDEX_syntax_update.sqlserver (20.3 KB)

Note: For others who want to use this same index syntax fix, please consult the SailPoint support team for official confirmation. I will also wait for the SailPoint support team’s official confirmation before applying the same fix to the Stage environment upgrade/migration.

As a reminder, SailPoint Support does not offer advice on database indexing, so it is recommended that you review the documentation for IdentityIQ and consult with your DBA, who is the expert on database changes.

Dear @teresa_warren

It seems there might be a misunderstanding about the topic and its intent. There is no request for advice regarding the indexes.

We are simply pointing out a mistake in the index renaming pattern within the upgrade_identityiq_tables.sqlserver script.

Please refer to the latest conversation in the below bug topic for more details.
[IdentityIQ 8.5 upgrade script syntax errors - Feedback / Bugs - SailPoint Developer Community] (IdentityIQ 8.5 upgrade script syntax errors)

This is in regard to your comment referring the the SailPoint Support team for assistance:

Note: For others who want to use this same index syntax fix, please consult the SailPoint support team for official confirmation. I will also wait for the SailPoint support team’s official confirmation before applying the same fix to the Stage environment upgrade/migration.

I got clarity on these 13 lines and there’s no bug or no syntax issues.

I just went through the db2 upgrade_identityiq_tables.db2 file and found these INDEX values.

So these errors/warnings are expected. As Sail Point team mentioned, we can ignore them and proceed with the migration/upgradation.