CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Object Reference Not Set to an Instance of an Object Error (https://www.cfd-online.com/Forums/cfx/222627-object-reference-not-set-instance-object-error.html)

t8fanning December 2, 2019 10:24

Object Reference Not Set to an Instance of an Object Error
 
I'm working on simulating a speedline of a centrifugal compressor with a volute. I have a CFX setup and change mass flow rate with a parameter table of design points. I ran the whole speedline over the weekend with no errors. However, when I set a different design point as current to continue running that specific point a little longer, I get an object reference not set to an instance of an object error. This error does not occur when I have the original design point as current and try to continue the original design point solution. The complete error output is as follows:

Code:

System.NullReferenceException: Object reference not set to an instance of an object.
  at Ansys.Core.DataModel.DataObjects.DataObjectContainer.getTypeNamePair(DataReference dref)
  at Ansys.CFX.CFXCore.Data.CFXSolutionSource.GetSetupLink()
  at Ansys.CFX.CFXCore.Data.CFXSolutionSource.findUpstreamDependencies(IFullContext context)
  at Ansys.CFX.CFXCore.Data.CFXSolutionSource.DefineRun(IFullContext context, ExecutionControlSourceEnum ecOption)
  at Ansys.Core.Commands.Concurrency.CommandWorkUnit.executeInContext(CommandContext subContext, IExecutionEngineCallback tracer)
  at Ansys.Core.Commands.Concurrency.BaseWorkUnit.doExecute(IExecutionEngineCallback executionEngine, CommandContext subContext)
  at Ansys.Core.Commands.Concurrency.BaseWorkUnit.Execute(IExecutionEngineCallback executionEngine, Boolean dontCatchExceptions)
--- Ansys.Core.Commands.CommandFailedException: Object reference not set to an instance of an object.
CommandName: CFX.EditRunDefinition(Container="Solution")
  at Ansys.Core.Commands.CommandAsyncResult.RethrowFailureException(Exception e)
  at Ansys.Core.Commands.CommandAsyncResult.Wait(Int32 milliSecondsTimeout, Boolean exitContext)
  at Ansys.CFX.CFXCore.Commands.EditRunDefinitionCommand.InvokeAndWait(IProtectedContext context, DataContainerReference Container, ExecutionControlConflictOptions ExecutionControlOption)
  at Ansys.CFX.CFXCore.Commands.EditRunDefinitionBase.Invoke(GuiOperationContext context)
  at Ansys.UI.GuiOperationContext.Invoke(GuiOperationMetaData operationData)
  at Ansys.UI.UIManager.InvokeOperationCore(String pseudoname, OperationDelegate callback, Boolean allowOSMessages, Boolean coreTransaction)

I've read a few threads that said they fixed their error running ANSYS as an administrator or deleting the contents of the AppData/Roaming/ANSYS folder, but that has not worked for me. Any idea what could be causing this error or how I can avoid it in the future?


All times are GMT -4. The time now is 14:56.