CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > CFX

Object Reference Not Set to an Instance of an Object Error

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2019, 10:24
Default Object Reference Not Set to an Instance of an Object Error
Join Date: Feb 2015
Posts: 31
Rep Power: 7
t8fanning is on a distinguished road
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:

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?
t8fanning is offline   Reply With Quote


cfx, error, object reference

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 09:40
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Errors in UDF shashank312 Fluent UDF and Scheme Programming 6 May 30, 2013 20:30
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31

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