Can't Use Variable As Input in Set Variable Module

Hi.
I can’t seem to use variables as inputs in a Set Value module. If you look at the attached image you can see that when selecting the MessageRole variable from a previous module it definitely has a value in it but after I run the Set Value module it says it’s empty. It works fine if I use a text value instead.