Get Assigned Label to A text element

Hello, i’ve been trying to get the assigned label to a text element.
It says that the parameter has no value.
Is there another way to do so?

Thanks