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
Melisande PerronMelisande Perron 

UserStatus Page Visualforce module error

I'm trying to learn how to make Visualforce pages, and am on the module https://developer.salesforce.com/trailhead/visualforce_fundamentals/visualforce_variables_expressions
I have created the page per the instructions, but now get this Problem on Line 1:
"Incorrect paramenter type for function 'not()'. Expected boolean, received Text" 
for this page which looks exactly like the example in the module:

<apex:page sidebar="false">
 
    <apex:pageBlock title="User Status">
    <apex:pageBlockSection columns="1">
        {! $User.FirstName &''&! $User.LastName }
        ({! $User.Username})
        <p>Today's Date is {! TODAY()} </p>
        <p>Next week will be {! TODAY() + 7}</p>
      
        </apex:pageBlockSection>
    </apex:pageBlock>
    
</apex:page>
-------------
I have removed the "" from around the sidebar="false", but the error persists.

What is wrong?
 
david roggerdavid rogger

The problem is that you are calling a method "getUser_ (https://shiromaniakalidalofficial.blog.com)StatusId()" with this underscore but it was defined without it "getUserStatusId()"
Laura Babb 4Laura Babb 4
I'm having the same issue. How do I resolve? I don't see where I'm calling a method:

<apex:page >
        <apex:pageBlock title="User Status">
        <apex:pageBlockSection columns="1">
            {!$User.FirstName & ' ' & !$User.LastName} ({!$User.Username})
            <p> Today's Date is {!TODAY() } </p>
            <p> Next week it will be {!TODAY() + 7 } </p>
        </apex:pageBlockSection>
    </apex:pageBlock>
</apex:page>