# Referenced object error

**URL:** <https://forum.dynamobim.com/t/referenced-object-error/18085>\
**Category:** Uncategorized\
**Created:** [January 12, 2018, 3:44am UTC](https://forum.dynamobim.com/t/referenced-object-error/18085 "2018-01-12T03:44:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 12, 2018, 3:44am UTC](https://forum.dynamobim.com/t/referenced-object-error/18085/1 "2018-01-12T03:44:40Z")

</div>

Hello, I am trying to get the reference level from a linked object using this post’s method: [Query Level of Linked Element](https://forum.dynamobim.com/t/query-level-of-linked-element/12923/9?u=kennyb6)

But I keep getting this error.  
 ![dynamo_referencedobject](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f77e33e35715b8fdddcec3b449e9779c338c8ad3.png)  
IN[0] is just a list of elements from a linked revit and IN[1] is the doc of said linked revit. I am not sure if something in the code changed between when the post was made and now or if it is a problem from my linked file.

Any feedback would be appreciated.

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [January 12, 2018, 7:41am UTC](https://forum.dynamobim.com/t/referenced-object-error/18085/2 "2018-01-12T07:41:40Z")

</div>

I reloaded the linked files and the error went away but now this error shows:  
 ![dynamo_nonetype](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/d/5daab92c96f516dc30a0b5bf23775999550131de.png)

Same code as before except instead of doc[0] in the append line, it is just doc (since I had an error that doc was unsubscriptable)

---

<div class="post-metadata">

**Author:** ![Kulkul](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kulkul/32/49801_2.png) [@Kulkul](https://forum.dynamobim.com/u/Kulkul)\
**Post date:** [January 16, 2018, 5:57pm UTC](https://forum.dynamobim.com/t/referenced-object-error/18085/3 "2018-01-16T17:57:03Z")

</div>

Hi @kennyb6

Please show us complete graph with all the previews turned on.
