# Rhino Datasmith Fails on Second Export: Null Reference Exception

**URL:** <https://forums.unrealengine.com/t/rhino-datasmith-fails-on-second-export-null-reference-exception/1911621>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine, question\
**Created:** [June 21, 2024, 2:30pm UTC](https://forums.unrealengine.com/t/rhino-datasmith-fails-on-second-export-null-reference-exception/1911621 "2024-06-21T14:30:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![orcharbj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@orcharbj](https://forums.unrealengine.com/u/orcharbj)\
**Post date:** [June 21, 2024, 2:30pm UTC](https://forums.unrealengine.com/t/rhino-datasmith-fails-on-second-export-null-reference-exception/1911621/1 "2024-06-21T14:30:09Z")

</div>

I can successfully export a Rhino file using the Datasmith exporter plugin to Unreal, but when I try to do this a second time in the Rhino file, I get this message:

An unexpected error has occurred:  
System.NullReferenceException: Object reference not set to an instance of an object.  
at DatasmithRhino.ElementExporters.DatasmithRhinoActorExporter.AddActorToParent(FDatasmithFacadeActor InDatasmithActor, DatasmithActorInfo InNode, FDatasmithFacadeScene InDatasmithScene)  
at DatasmithRhino.ElementExporters.IDatasmithRhinoElementExporter`2.SynchronizeSynchronously() at DatasmithRhino.DatasmithRhinoSceneExporter.SynchronizeScene(DatasmithRhinoExportContext ExportContext, FDatasmithFacadeScene DatasmithScene) at DatasmithRhino.DatasmithRhinoSceneExporter.ExportScene(FDatasmithFacadeScene DatasmithScene, DatasmithRhinoExportContext ExportContext, Func`2 OnSceneExportCompleted)

I’m using Rhino 8, Unreal 5.4, and the very latest Datasmith plugin version (but the issue occurred with Rhino 7 and older versions of UE5 as well).

The only way I can reexport to Unreal is to close and reopen Rhino, which massively slows down my workflow. How do I fix this?

---

<div class="post-metadata">

**Author:** ![orcharbj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@orcharbj](https://forums.unrealengine.com/u/orcharbj)\
**Post date:** [June 24, 2024, 6:06pm UTC](https://forums.unrealengine.com/t/rhino-datasmith-fails-on-second-export-null-reference-exception/1911621/2 "2024-06-24T18:06:30Z")

</div>

I exploded all blocks in the Rhino model, which fixed this issue. However, blocks are critical to my workflow, and I really need Datasmith to handle them correctly. Is this a bug, or is this a setting somewhere I can change to fix this?

---

<div class="post-metadata">

**Author:** ![geokampou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@geokampou](https://forums.unrealengine.com/u/geokampou)\
**Post date:** [February 5, 2025, 3:54pm UTC](https://forums.unrealengine.com/t/rhino-datasmith-fails-on-second-export-null-reference-exception/1911621/3 "2025-02-05T15:54:27Z")

</div>

This is a huge problem why no one is talking about it. It happens to twinmotion aswell…
