Error: "Object Reference Not Set to an Instance of an Object" When Deleting Last Layout in Visualizer. (Doc ID 2193914.1)

Last updated on MARCH 09, 2017

Applies to:

Primavera P6 Professional Project Management - Version 16.1.5.0 and later
Primavera P6 Enterprise Project Portfolio Management - Version 16.1.5.0 and later
Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 16.1.5.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to delete the last layout available in Visualizer, the following error occurs:

ERROR
-----------------------
Object reference not set to an instance of an object
  at Primavera.Venus.Infrastructure.Types.Entity.EntitySet`1.Delete(TEntity TheObject)
  at Primavera.Venus.DataRepository.AbstractRepository`1.Remove(T Object)
  at Primavera.Venus.Presentation.Views.Reports.ManageLayoutsViewModel.OnDeleteSingleLayout()
  at Prism.Commands.DelegateCommandBase.<>c__DisplayClass5_0.b__0(Object arg)
  at Prism.Commands.DelegateCommandBase.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at Prism.Commands.DelegateCommandBase.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
  at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
  at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)




STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Log into P6 client.
2. Select Tools, then launch Visualizer.
3. Select More then Manage.
4. Make sure there is only 1 layout.
5. In Manager Layout screen highlight layout and select delete.



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