# Type undetermined in macro

**URL:** <https://forums.unrealengine.com/t/type-undetermined-in-macro/343855>\
**Category:** Platform & Builds\
**Tags:** macro-library, unreal-engine, bug-report, question\
**Created:** [January 12, 2016, 6:15pm UTC](https://forums.unrealengine.com/t/type-undetermined-in-macro/343855 "2016-01-12T18:15:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgamble](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kgamble](https://forums.unrealengine.com/u/kgamble)\
**Post date:** [January 12, 2016, 6:15pm UTC](https://forums.unrealengine.com/t/type-undetermined-in-macro/343855/1 "2016-01-12T18:15:44Z")

</div>

I set up two macros in a Macro Library to get me a random index and a random item in an array. They’re both pretty simple:

 ![74101-randomindex.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/c/b/3cb64a5540c1e6c4d15b8a90bddb2d1cadf5f761.png)

 ![74102-randomitembroken.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/2/ef2abd55caebb539cfdad3e44abcf525b8d459eb.png)

The random index macro works fine, but when I try to use the random item macro it gives me the error “Error The type of Target Array is undetermined. Connect something to GetRandomArrayItem to imply a specific type.” Looks like it gets confused when a macro with a wildcard calls another macro with a wildcard. For now I can change the random item macro to do this instead

 ![74104-randomitemworking.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/9/a/09a398c0ce8fdffcdffb5cbd389063be1177ee1b.png)

and it works, but it would be nice to be able to chain the two macros together.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b9532c9a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b9532c9a](https://forums.unrealengine.com/u/anonymous_user_b9532c9a)\
**Post date:** [January 12, 2016, 6:41pm UTC](https://forums.unrealengine.com/t/type-undetermined-in-macro/343855/2 "2016-01-12T18:41:50Z")

</div>

Hi ,

This is a known issue and is in our system as UE-21739. Unfortunately I do not have a timeframe of when it will be addressed, however it looks like the workaround you have already mentioned is the best option until this is resolved.
