I am getting the following error when creating a v-force page in a standard controller extension:
System.VisualforceException: Unknown property 'Award__cStandardController.awardAmount'
The interesting thing is that 1) I don't have a property named awardAmount at all in the v-force page or elsewhere, and 2) this error is popping up for other users but not for myself. (One of the other users has the exact same permissions/sets as I do and he gets the error but I still don't).
I do use a variable called cashAwardAmount and it is initialized like so:
public Decimal cashAwardAmount {get; set;}
I then set the value like so:
this.cashAwardAmount = currentAward.Cash_Award_Amount__c;
Which I then use in a visualforce page like this:
<apex:outputPanel>
<apex:outputText value="Total Amount of Award ($): " />
<apex:outputText value="{0, number, ###,###,##0}">
<apex:param value="{!cashAwardAmount}" />
</apex:outputText>
</apex:outputPanel>
There are 3 visualforce pages that use the same {!cashAwardAmount} variables, but only 2 are failing. However, they all use the same Award__c standard controller and PDFFormCreatorController extension.
The only change we've made recently to the object was to push a validation rule that allows sys admin users to continue editing the record in certain stages.
I've read a lot of the other posts dealing with unknown property errors, but it seems like I'm doing the things that they weren't. I'm completely stumped.
Please let me know if you need more context, code snippets, etc.
Thank you!
!awardAmount
in your pages? Maybe you missed a spot that has that...awardAmount
in my IDE, which returned nothing. Oddly, in my sandbox, if I redeployed the controller class and the VF pages, even though they contained 0 changes, then everything worked. Re-compiling all classes didn't work in production, though. I'm going to upload a change set containing the controller class with all dependent VF pages and see if that makes things work again in production.