An IndexOutOfBoundsException occurs in SAS Flex Themes when you run the SAS® Migration Utility


When you run the SAS Migration Utility, SAS Flex Themes (flexthemes) might encounter an IndexOutOfBoundsException similar to the following when the getSASInfrastructureDataServerDatabaseCredentials macro runs:

2024-09-24 08:39:48,654 [ERROR ] Task flexthemes.Execute.sequential threw Exception getSASInfrastructureDataServerDatabaseCredentials failed: java.lang.: Index: 0.

2024-09-24 08:39:48,654 [ERROR ] Task flexthemes.Execute.getSASInfrastructureDataServerDatabaseCredentials threw Exception The following error occurred while executing this line:

/usr/local/web/rmg/sas/SASDeploymentManager/9.4/products/
cfgwizard__94568__prt__xx__sp0__1/Utilities/webinfdsvrcTasks.xml:1984: getSASInfrastructureDataServerDatabaseCredentials failed: java.lang.IndexOutOfBoundsException: Index: 0.

This error occurs when the SAS Administrator account is not a member of the ThemeDesigner Administrators group. 

To resolve the issue, do the following:

  1. Log on to SAS® Management Console.
  2. Go to the User Manager and select ThemeDesigner Administrators > Properties > Members.
  3. Add the SAS Administrator account.
  4. Click OK to exit the prompts.
  5. Rerun the SAS Migration Utility.