Not able to convert the recorder to groovy script

I

am not able to convert my recorder to the groovy script. Getting the below error as I haven’t used “template_code” in my recorder

Hi @anbueceit can you share your recording?

HI @anbueceit,

you forgot to end the tag ,use “/” as following:
<
var-def name=“Template_code”/>

This will work