# Compile Error: Object reference is not compatible with Object reference?

**URL:** <https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775>\
**Category:** Blueprint\
**Tags:** error, object-reference, unreal-engine, Array, question\
**Created:** [August 11, 2023, 12:29pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775 "2023-08-11T12:29:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [August 11, 2023, 12:29pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775/1 "2023-08-11T12:29:32Z")

</div>

All I need is to get the location and rotation of a single array element but it wont let me.

 ![Screen Shot 2023-08-11 at 8.25.17 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/9/bb9c0fad773f839a535de0d230710a96684b1b49.png)

 ![Screen Shot 2023-08-11 at 8.26.32 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/e/13eca72270bc918dc02e6e891c3d28270e74740f.png)

I even tried right clicking on the ‘Out Actors’ and promoting them to a variable but the newly created variable wasn’t connected to the out actors. When I tried to set the variable to the out actors I got the error “Array of Object References is not compatible with Array of Object References”

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 11, 2023, 2:33pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775/2 "2023-08-11T14:33:22Z")

</div>

Delete the GET node, and make a new one by dragging from the ‘get all actors’.

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [August 11, 2023, 3:55pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775/3 "2023-08-11T15:55:17Z")

</div>

You’re a good man.  
I’m kind of ashamed I didn’t try that, that was basically the equivalent of turning it off and back on again, basic stuff really.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 11, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775/4 "2023-08-11T16:01:10Z")

</div>

We all do it 😉

When you first drag the node, it gets typed, and then it won’t work with another sort of array.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 10, 2023, 4:01pm UTC](https://forums.unrealengine.com/t/compile-error-object-reference-is-not-compatible-with-object-reference/1257775/5 "2023-09-10T16:01:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
