My Oracle Support Banner

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

Last updated on JANUARY 19, 2021

Applies to:

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


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

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)

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.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.