Dynamo stopped working. All nodes show null

I ran the dynamo script and it gave an error (attached below). Before that it was running fine but now all nodes show null after running. I tried restarting the pc and revit but still no results.

Packages or external references used include; Clockwork, bumblebee, datashape, pyrevit

Error message

Specified cast is not valid.

   at ProtoCore.DSASM.Heap.ToHeapObject[T](StackValue heapObject)
   at ProtoCore.DSASM.Heap.RecursiveMark(StackValue root)
   at ProtoCore.DSASM.Heap.SingleStep(Boolean forceGC)
   at ProtoCore.DSASM.Executive.POP_helper(Instruction instruction, Int32& blockId, Int32& dimensions)
   at ProtoCore.DSASM.Executive.POP_Handler(Instruction instruction)
   at ProtoCore.DSASM.Executive.Execute(Int32 exeblock, Int32 entry, Language language)
   at ProtoCore.DSASM.Executive.Execute(Int32 exeblock, Int32 entry, List1 breakpoints, Language language)
   at ProtoCore.DSASM.Executive.BounceUsingExecutive(Executive executive, Int32 exeblock, Int32 entry, StackFrame stackFrame, Int32 locals, Boolean fepRun, Executive exec, List1 breakpoints)
   at ProtoScript.Runners.ProtoScriptRunner.ExecuteLive(Core core, RuntimeCore runtimeCore)
   at ProtoScript.Runners.LiveRunner.Execute(Boolean isCodeCompiled)
   at ProtoScript.Runners.LiveRunner.CompileAndExecute(List1 astList)
   at ProtoScript.Runners.LiveRunner.CompileAndExecuteForDeltaExecution(List1 astList)
   at ProtoScript.Runners.LiveRunner.SynchronizeInternal(GraphSyncData syncData)
   at ProtoScript.Runners.LiveRunner.UpdateGraph(GraphSyncData syncData)
   at Dynamo.Scheduler.UpdateGraphAsyncTask.HandleTaskExecutionCore()
   at Dynamo.Scheduler.AsyncTask.Execute() 

OS: Microsoft Windows NT 10.0.22631.0
CLR: 4.0.30319.42000
Dynamo: 2.10.1.3976

Do other graphs run?

Surprising yes. I thought this is a dynamo problem since even basic nodes like “all elements of category” don’t run in this graph but it’s not, since the same nodes run in other graphs. What could be the likely issue with my script?

Double check to make sure there isn’t a popup open on a monitor you don’t have connected - ctrl+tab can let you know.

If not that, the file might be corrupted. One thing to try:

  • Restart Revit, open a new model, launch Dynamo, and open the graph
  • ctrl + a to select all nodes, groups, notes, etc. on the canvas.
  • ctrl + n to start a new graph - don’t save the current one though (no need).
  • ctrl + v to paste the content into the new graph
  • Save the new graph as a new file
  • Close Dynamo and then the Revit document
  • Open the real Revit document, lunch Dynamo, and open the new graph
  • Run the new graph

If that works you are all set. If not, you are blocked by something. Post the new graph and a model to run it on and I’ll try to have a look at it.

1 Like