"Error: 'Critical Exception occurred: System.InvalidOperationException: The value for the property PageSize cannot be set" And "System.NullReferenceException: Object reference not set to an instance of an objec"' Launching Time Scale Logic Diagram (TSLD) (Doc ID 2169804.1)

Last updated on JANUARY 30, 2017

Applies to:

Primavera P6 Professional Project Management - Version 8.2.0.0 to 8.2.5.0 [Release 8.2]
Primavera P6 Enterprise Project Portfolio Management - Version 8.2.0.0 to 8.2.5.0 [Release 8.2]
Information in this document applies to any platform.

Symptoms

When trying to launch the Time Scaled Logic Diagram (TSLD) from the tools menu, within P6 Professional, the following error occurs when TSLD launches:


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)

System.Exception: TemplateService Fail to Get Template Data: System.ServiceModel.FaultException'1[System.ServiceModel.ExceptionDetail]: Object reference not set to an instance of an object. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.NullReferenceException: Object reference not set to an instance of an object.
at Primavera.API.Services.P6LookBusinessRuleService.GetTemplateIDs()
at SyncInvokeGetTemplateIDs(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)
at System.Servic...).
at Primavera.Look.DataAccess.ServiceBasedTemplateDataProvider.GetAllTemplateData()
at Primavera.Look.DataAccess.DatabaseTemplateProvider.get_AllTemplates()
at Primavera.Look.DataAccess.DomainContext.get_Templates()
at Primavera.Look.DataAccess.DomainContext.get_CurrentTemplate()
at Primavera.Look.ViewModels.MainViewModel.EnsureSaveTemplate()
at Primavera.Look.Views.MainWindowView.Window_Closing(Object sender, CancelEventArgs e)
at System.Windows.Window.WmClose()
at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

The p6connector.log file in the %TEMP% directory returns the following error:

ERROR

Critical Exception occurred: System.InvalidOperationException: The value for the property PageSize cannot be set.
at System.DirectoryServices.DirectorySearcher.DoSetSearchPrefs(IDirectorySearch adsSearch, AdsSearchPreferenceInfo[] prefs)
at System.DirectoryServices.DirectorySearcher.SetSearchPreferences(IDirectorySearch adsSearch, Boolean findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
at System.DirectoryServices.DirectorySearcher.FindAll()
at Primavera.API.PrmAuthenticationProviderImpl.findUserandGetParams(String& uName, String& email, String& phone, String& actname)
at Primavera.API.PrmAuthenticationProviderImpl.doLogin(String uName, String pwd)
at OraclePrimavera.ApplicationLogic.TprmBaseLogin.doLogin(String uName, String pwd)
at Primavera.API.ApplicationSession.VerifyUserCredentials(TCUser auser, String appPassword)
...

STEPS TO REPRODUCE:

  1. Log into P6 Client (configured with LDAP)
  2. Open a project
  3. Launch TSLD from the tools menu.
  4. Error occurs: Primavera.Look.Log inFailureException

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