Skip to content
Discussions/App Development/Parse error on inputForum ↗

Parse error on input

App Development4 posts372 views2 likesLast activity Sep 2022
NE
Neelam_DwivediOP
Sep 2022

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?

BE
Ben_M
Sep 2022

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.

NE
Neelam_Dwivedi
Sep 2022

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

BE
Ben_M
Sep 2022

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

← Back to Discussions