Hello, today we've spend quite some time to find out why our server was running out memory when generating a particular template. Eventually we found out that the following mergefield construction was the problem:
{Mergefield TableStart:Table1}
{ IF { Field1} = "value" {Field2} {Field3} "" }
{Mergefield TableEnd:Table1}
The intended result was that Field2 and Field3 would be shown together.
The fix was easy:
{Mergefield TableStart:Table1}
{ IF { Field1} = "value" "{Field2} {Field3}" "" }
{Mergefield TableEnd:Table1}
Now my question is, is there a way to 'not have the server run out of memory' if the template is not valid? The server is hosting more than this process and the memorypressure is having a bad effect on the overal performance.
Since we are just providing the service to our customers we have little control over (the quality of ) the templates that will be submitted to it. So it is fair to expect invalid templates being submitted on a regular basis.
Greetings Bas Mommenhof.
(Edited to include the TableStart/TableEnd)