I have an custom button on Lead object. That button should generate PDF document which i already made in visualforce. Sometimes when i click that button i get this message
"The value attribute on is not in a valid format. It must be a positive number, and of type Number, Date, Time, or Choice "
But sometimes it works perfectly. Also i have a lot of formating number fields in my table in that documents, and all of that fields i format like this:
<apex:outputText value="{0,number, ###,###,##0}">$<apex:param value="{!IF(lead.X401_IRA_Savings__c!=null,lead.X401_IRA_Savings__c,'N/A')}"/>
Visualforce don't show me any error. I have also 1 field with Date value:
<apex:outputText value=" {0,date,MM/dd/yyyy }">
<apex:param value="{!lead.createdDate}" />
</apex:outputText>
So i don't know what's the problem here, because i don't have any errors in visualforce and this is simple problem to do, and more weird is that, that sometimes work,sometimes not. Any help?