Template not generating output when using for-each@section
Hello,
I am working with a template that should show an error message based on a data element being null or not.
The issue is that since my template uses a for-each@section construct, the PDF output is not generated and I get a Acrobat message "There was an error opening this document. This file cannot be opened because it has no pages".
here's the simplified template:
<?if: ERROR_MESSAGE!=’’?>
<?ERROR_MESSAGE?>
<?end if?>
<?if: ERROR_MESSAGE=’’?>
<?for-each@section:G_1?>
Do something
<?end for-each?>
<?end if?>
In this case, the xml generated by the data model does not generate any data for G_1 i.e. G_1 is absent from the xml. The ERROR_MESSAGE element is coming from another query/group G_3.