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
Claire SherryClaire Sherry 

"PDF generation failed. Check the page markup is valid." Apex data table

I have an apex data table to list cases related to a contract. However, I want to only display specific record types on the list. My current solution works fine, unless the most recent case (or first result of the list) is a different record type than specified. Then I get the above error. 
 
It also works fine as a standard visualforce page, but rendered as a PDF, it fails.
 
Any ideas on what I am doing wrong?

Is there any workarounds?
 
<apex:page renderAs="pdf" showHeader="false" sidebar="false" standardStylesheets="false" applyBodyTag="false" applyHtmlTag="false" standardController="Contract"> <apex:dataTable value="{!Contract.Claims__r}" var="claim" id="claimTableInfo" width="100%" rowClasses="odd,even" styleClass="claimRecordsTable" border="solid" cellpadding="5px"> <apex:column rendered="{!if(claim.recordTypeID == '012b0000000Kr2VAAS','true','false')}" styleClass="claimRecordsTable" width="170px"> <apex:outputText value="{!claim.CaseNumber}"/> </apex:column> <apex:column rendered="{!if(claim.recordTypeID == '012b0000000Kr2VAAS','true','false')}" styleClass="claimRecordsTable" width="170px"> <apex:outputText value="{0,Date,dd/MM/yy}"><apex:param value="{!claim.Claim_Form_Recevied_Date__c}" /></apex:outputText> </apex:column> </apex:dataTable> </apex:page>
corel roemercorel roemer
I also want this if you get a solution then please help me (https://www.beststeamiron.io).
Thanks
Helen D. WickhamHelen D. Wickham
I also want this if you get a solution then please help me https://emgpainting.ca/
Kimberly V. MilesKimberly V. Miles
Can you help me with this https://tesler-trading.net/? I need a solution as soon as possible.
Barbara R. WelchBarbara R. Welch
I'm looking for a solution to the problem at printful etsy (https://ecommercechamp.com/printify-vs-printful/). Can you help me out? I need a solution as soon as possible.
Dana J CashionDana J Cashion
I'm looking for a solution to this problem - can you help me out? https://wifiwealth.com/how-to-sell-jewellery-on-amazon/
Kimberly V. MilesKimberly V. Miles
If I find a solution, I will definitely help you with deleting your web history for the website residential painter near me (https://emgpainting.ca/locations/hamilton-painting-services/)