function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Charlie Pickles 5Charlie Pickles 5 

apex email template not working

Please can someone explain why this wouldn't work?
 the error im receiving is:
Error: Engineer_Returns_Contact line 24, column 23: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>"
Error: The element type "apex:outputPanel" must be terminated by the matching end-tag "</apex:outputPanel>".





<messaging:emailTemplate subject="RAM Cameras to Return" recipientType="Contact" relatedToType="Case">

<messaging:htmlEmailBody >
<html>
<body>


kdmksmda
djbaskns
sjdnsaokdna

<table>
       <apex:repeat Value="{!relatedto.Service_Bookings__r}" var="SVC">
                   <apex:outputPanel rendered="{!AND(SVC.Work_Type__c = "Service Call"), SVC.Camera_Returned__c = False)}">
                    <tr>
                   <td style="color: #EB690B; text-align: Center; padding-left: 10%; padding-right: 10%;"><b>{!SVC.Case_Owner__c}</b></td>


                   <!-- <td>{!SVC.Account_name__c}</td> -->

                   <!-- <td>{!SVC.Case_ID__c}</td> -->

                    </tr>
                    </apex:outputPanel>
             </apex:repeat>
</table>
</body>
</html>
Hemant_SoniHemant_Soni
Hi,
Please try below one.
<apex:outputPanel rendered="{!AND(SVC.Work_Type__c = "Service Call", !SVC.Camera_Returned__c)}">

 
Maulik D ShahMaulik D Shah
Hello Charlie,

In this line.
<apex:outputPanel rendered="{!AND(SVC.Work_Type__c = "Service Call"), SVC.Camera_Returned__c = False)}">
added extra ')'.  remove and try it. 

something like this.
<apex:outputPanel rendered="{!AND(SVC.Work_Type__c = 'Service Call', SVC.Camera_Returned__c = False)}">
I hope this helps you.