Failed to parse ${Comments | appearance: “multiline”}

478
2
02-21-2022 01:10 PM
hherrmann_coj
Occasional Contributor

Hello everyone.  I am trying to create my first custom template for a survey I have uploaded from Connect to our Organization.  I am getting the following error, despite my attempts at correcting where I thought the error might be but I'm not having any luck so far.  I'm hoping those of you with more experience in custom templates, are able to help me out.

Error: An error occurred when checking the report template. Failed to parse ${Comments | appearance: “multiline”} since Comments cannot be found in the current parsing scope.

I have included a screenshot of both my XLS form where I've created the form, and also my template in Word.

Thank you in advance for any advice you may be able to offer.  

0 Kudos
2 Replies
Katie_Clark
MVP Regular Contributor

Hello,

I don't see any field called ${Comments} in your XLS form. You have:

  • ${imagecomments}
  • ${misccomments}
  • ${site_conditions_comments}
  • ${projectdetailcomments}

 

You'll need to call the appropriate field for the section of the template that you want it to populate in.

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
abureaux
MVP Regular Contributor

I had similar issues. ${Comments | appearance: “multiline”} should be on its own line or it can cause parsing errors:

 

This
Comments:
${Comments | appearance: “multiline”}

 

Not this
Comments: ${Comments | appearance: “multiline”}

Edit. Formatting went wild. Hopefully it is fixed now!

0 Kudos