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
Dave The RaveDave The Rave 

"Invalid identifier ''. Apex identifiers must start with an ASCII letter....

"Invalid identifier ''. Apex identifiers must start with an ASCII letter (a-z or A-Z) followed by any number of ASCII letters (a-z or A-Z), digits (0 - 9), '$', '_'."

Help, has anyone every got the above error?  Someone very kindly from this forum provided me with the code, I cut and paste it in to the developer console and got this error. Naturally, I have asked this person about this error, but everyone is welcome to comment on this issue.

Dave
Best Answer chosen by Dave The Rave
Dave The RaveDave The Rave
Hi Raj, I solved this issue myself. I think it was just a cut and past issue.

I just pasted the code from my Excel sheet back into the code section on this question and then copied the code back into the SF Dev console.

Thanks,

Dave

All Answers

Raj VakatiRaj Vakati
can you share the code
Dave The RaveDave The Rave
Hi Raj, I solved this issue myself. I think it was just a cut and past issue.

I just pasted the code from my Excel sheet back into the code section on this question and then copied the code back into the SF Dev console.

Thanks,

Dave
This was selected as the best answer
Valerie Cure 8Valerie Cure 8
I'm getting a similar error : Error: Compile Error: Unrecognized symbol '"', which is not a valid Apex identifier. at line 1 column 28, I can't figure out what it is, here is the code:

<apex:component controller="CompanyRoles" access="global">
    <apex:dataTable value="{!CompanyRoles}" var="role">
        <apex:column>
            <apex:facet name="header">Roles</apex:facet>
            {!role.Name}
        </apex:column>
    </apex:dataTable>
</apex:component>

Any help will be greatly appreciated!