Error: "STARTINDEX CANNOT BE LARGER THAN LENGTH OF STRING"When Attempting To Launch the TSLD Application Or "Input string was not in a correct format." Attempting to login Visualizer (Doc ID 1589920.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 8.2 1.0 and later
Information in this document applies to any platform.
***Checked for relevance on 04-May-2015***

Symptoms

When attempting to login to Timescaled Logic Diagram (TSLD), the following error occurs:


ERROR
-----------------------
Primavera.Look.LoginFailureException: Exception of type 'Primavera.Look.LoginFailureException' was thrown.
  at Primavera.Look.BootStrapper.Run(String xmlfile, String templatefile, LoginInfo loginInfo, String projIDs)
  at P6Look.App.RunApplicationStartup()
  at P6Look.App.Application_Startup(Object sender, StartupEventArgs e)

When reviewing the P6Connector.log file which is written to the %TEMP% directory, to determine the actual error causing TSLD to fail, the following message was displayed:

ERROR
----------
Critical  Exception occurred: System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
  Parameter name: startIndex at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
  at Primavera.API.ApplicationSession.GetOracleAliasInfo(String jurl)
  at Primavera.API.ApplicationSession.CollectAliasInfoFromBootstrapFile()
  at Primavera.API.ApplicationSession.createAndSetupDatabase()
  at Primavera.API.ApplicationSession.OpenSession(String anAlias, String appUserName, String appPassword)

 

There is a symptoms for Visualizer. When attempting to login to Visualizer, the following error occurs:

1) The user is not able to log in to Visualizer and received the error:

Critical General, OpenSession Exception occurred: System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Primavera.API.ApplicationSession.CollectAliasInfoFromBootstrapFile()
   at Primavera.API.ApplicationSession.createAndSetupDatabase()
   at Primavera.API.ApplicationSession.AuthenticateUser(String anAlias, String appUserName, String appPassword)

2) Also, another symptom of this in Visualizer is that the list of aliases does not display on the Visualizer login page. The aliases show fine for P6 but not for Visualizer.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms