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

runtime error invalid field ID

Any idea why is this throwing runtime error invalid field ID for SObject mynamespace__PaymentExport__c?




<apex:page standardController="PaymentExport__c" recordSetVar="pec" > <!-- Begin Default Content REMOVE THIS --> <h1>Congratulations {!$User.FirstName}</h1> This is your new Page <!-- End Default Content REMOVE THIS --> <apex:pageBlock > <apex:pageBlockTable value="{! pec }" var="rec" > <apex:column value="{! rec.ID }" /> </apex:pageBlockTable> </apex:pageBlock> </apex:page>



Message Edited by Doker on 02-12-2009 05:20 AM

If I write


<apex:column value="{! rec.somenamethatdoesnotexist }" />



then i recieve  compilation error, but if i write


<apex:column value="{! rec.ID }" />

 then it compiles and shows an error when displaying page.


Is that a Visual Force BUG?



Now I know what was wrong: there are spaces after {! and before } ... goooooood ;>