Skip to content
CCPEDIAby Unity Nodes
App Development

Parse error on input

4 posts403 views2 likesLast activity Sep 2022

  1. Neelam_DwivediOP 1

    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?

  2. Ben_M

    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.

  3. Neelam_Dwivedi 1

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

  4. Ben_M

    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