MakeMap / MakeSet nodes do not exist

When I create a map variable and use a Set node to set its value without wiring an input to it, I get the following error message:

Error Default value ‘’ for Map
Variable is invalid: ‘Map inputs (like
‘Map Variable’) must have an input
wired into them (try connecting a
MakeMap node
).’

However, unlike MakeArray, there is no such node. There’s no MakeSet for set variables either.

You must manually add variable to this class, then go to its properties, and change its type to map or set with this button.

https://docs.unrealengine.com/latest/images/Engine/Blueprints/UserGuide/Arrays/array_selected.jpg

Still an issue as far as I can tell in 4.17. Anyone have an update on this?

this bug still exists in 5.3
solution: change key type to another, compile, then change back.

3 Likes

Thank you so much. It’s still happening in 5.5.3. I was trying to add keys to a local declared map in a function and this error popped up. Doing what you said fixed it.