# Object reference not set to an instance

**URL:** <https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/79178>\
**Category:** Civil 3D\
**Tags:** error\
**Created:** [July 27, 2022, 3:20pm UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/79178 "2022-07-27T15:20:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmed\_Ramy](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@Ahmed\_Ramy](https://forum.dynamobim.com/u/Ahmed_Ramy)\
**Post date:** [July 27, 2022, 3:20pm UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/79178/1 "2022-07-27T15:20:07Z")

</div>

Hi all ! I am having " Object reference not set to an instance of an object" error and don’t know the cause, any ideas ?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/e/2e623eeee3db27074009256cb8f58fd6eecfd0c1.png)

---

<div class="post-metadata">

**Author:** ![KirkWM](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kirkwm/32/104406_2.png) [@KirkWM](https://forum.dynamobim.com/u/KirkWM)\
**Post date:** [July 27, 2022, 3:34pm UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/79178/2 "2022-07-27T15:34:16Z")

</div>

If it’s a random glitch, one thing to try is disconnecting the alignment wire, run the script, then reconnect and rerun.
