Parse error on input

This is a bare bones template code, but not compiling due to error in line: template aTemplate

module Test where

template aTemplate
with
owner: Party
where
signatory owner

I tried changing its name, putting it in a different module, … but the error shows at the same exact place. Any suggestions on what could be wrong here?

1 Like

Hi @Neelam_Dwivedi

Please refer to Daml Templates

Your template name must start with a Capital Letter, so your name of aTemplate needs to be Atemplate.

  • This is the name of the template. It’s preceded by template keyword. Must begin with a capital letter.
  • This is the highest level of nesting.
  • The name is used when creating a contract of this template (usually, from within a choice).

Hope this helps.

Thanks @Ben_M !! I knew I was doing something dumb! I will remember that one now :slight_smile:

1 Like

Happy to help.

If my answer has Solved your initial query, please mark it as a Solution, see screenshot below.
Daml_Forum_Solution_2022-09-26_09-29-30