# Can't use Set wildcards in macros

**URL:** <https://forums.unrealengine.com/t/cant-use-set-wildcards-in-macros/459597>\
**Category:** Blueprint\
**Tags:** error, macros, unreal-engine, bug-report, Blueprint, question\
**Created:** [December 16, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/cant-use-set-wildcards-in-macros/459597 "2019-12-16T15:59:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![broly](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@broly](https://forums.unrealengine.com/u/broly)\
**Post date:** [December 16, 2019, 3:59pm UTC](https://forums.unrealengine.com/t/cant-use-set-wildcards-in-macros/459597/1 "2019-12-16T15:59:15Z")

</div>

I created the the blueprint macro `For Each In Set` and tried to use it.

I got an compiler errors:

> `The type of Target Array generated from expanding For Each Set is undetermined. Connect something to Length generated from expanding For Each Set to imply a specific type.`

What’s wrong with it? How to fix it? How this happens? Probably developers may know? Can I create useful K2Node instead wrong macro?

Thanks for any info!

 ![294061-foreachset.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/4/bb470ec8f3e89eba1f2be17b9ca0cb9c5656e9ac.png)

 ![294062-foreachset-errors.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/4/ef4a09d73892973a7826449c933c3cba532a6a79.png)

---

<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:** [December 17, 2019, 12:12pm UTC](https://forums.unrealengine.com/t/cant-use-set-wildcards-in-macros/459597/2 "2019-12-17T12:12:03Z")

</div>

I get this kind of thing most times when I try and use wildcards in macros. I don’t think they’ve got all the wrinkles smoothed out…

( I usually end up coding it literally, or writing a macro for each type… )

---

<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:** [December 17, 2019, 12:18pm UTC](https://forums.unrealengine.com/t/cant-use-set-wildcards-in-macros/459597/3 "2019-12-17T12:18:03Z")

</div>

It’s when you move through more than one ‘level’ of wildcard…
