Key type does not match in relation

I have a scope variable @type {UUID} and field in table UUID (Text(36)). When i try and add the scope variable to the field i get an error

Key type from “scope variable” does not match with type from “field name”

I can’t see why they don’t match.

Can anyone point me in the right direction?

Thanks.

Richard

Works if the variable in scopes is a string :)