Attachment Template logic question

Below I have attached two images that display my workflow rules attachment template.
This is a project I have only just come back to after a couple months off.

My goal here is to have a user complete an inspection, if the inspection fails in an aspect then the worklow rule is triggered and a report is produced and emailed to our supervisor.

When the workflow rule is triggered I get this error in the audit log details:
"Errors": "Error: Workflow rule 'Fault on Machine' action 'Fault' Attachment template. Contains start token '<<' without matching end token '>>'

I found this information in the Reports article on the Appsheet articles

You must specify a Start Expression in the template that yields the list of records you wish the Report to display. To be more specific, the Start Expression must yield the list of key values of the table rows to be displayed.

But how do I identify the last row that the user entered within a start expression? I want the expression to work even when multiple entries are made in a short period of time by multiple users, and I want seperate reports for each.

I tried putting << End>> at the bottom but this simply produced an error that it did not have a start expression along with the error listed above.

Thank you for your time.


Solved Solved
0 4 418
1 ACCEPTED SOLUTION

How about the header text? You should have Fault on <<[Equipment]>>

View solution in original post

4 REPLIES 4

You donโ€™t need to use a start expression when youโ€™re just building a template for a single record.

You have a couple of OR() expression without the closing parenthesis โ€œ)โ€

Good spot!

I fixed all of them but it still fails and gives the same error:

โ€œErrorsโ€: โ€œError: Workflow rule โ€˜Fault on Machineโ€™ action โ€˜Faultโ€™ Attachment template. Contains start token โ€˜<<โ€™ without matching end token โ€˜>>โ€™โ€,

I have also tried to strictly copy the text content over to another attachment file, then use that as the template. This did not work.

How about the header text? You should have Fault on <<[Equipment]>>

I think this was the solution!

It creates a two page report that is largely blank but I can see this is caused by the spacing between expressions.

Thanks @Marc_Dillon and @Aleksi for your help

Top Labels in this Space