# "object reference not set to an instance"

**URL:** <https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/94890>\
**Category:** Revit\
**Created:** [October 25, 2023, 10:41am UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/94890 "2023-10-25T10:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NERDASORUS](https://avatars.discourse-cdn.com/v4/letter/n/278dde/32.png) [@NERDASORUS](https://forum.dynamobim.com/u/NERDASORUS)\
**Post date:** [October 25, 2023, 10:41am UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/94890/1 "2023-10-25T10:41:32Z")

</div>

Hello

while trying to write a script to parse some data, i get this warning:  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/467a91b23c8855c9f957db6760469c38ec6af69e.png)

could someone help me to what is meant by it? the “elements.getcategory” is from archilab,  
also, is there a workflow using OOTB nodes, to get the category of an element?

---

<div class="post-metadata">

**Author:** ![Daan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/daan/32/82246_2.png) [@Daan](https://forum.dynamobim.com/u/Daan)\
**Post date:** [October 25, 2023, 10:57am UTC](https://forum.dynamobim.com/t/object-reference-not-set-to-an-instance/94890/2 "2023-10-25T10:57:06Z")

</div>

Hi @NERDASORUS ,

Hard to say without knowing what your input is and without knowning what your Revit and Dynamo versions are. By they way “Element.GetCategory” is OOTB, so try that one instead.
