+ Start a Discussion
Abhik DeyAbhik Dey 

Portal Login Exception

We are having a salesforce community enabled for our org and we are running a SOQL to fetch the LastPasswordChangeDate field on the User object on the Portal HomePage Controller Constructor. Whenever we are trying to login to our community, we are getting an exception 
System.QueryException: No such column 'LastPasswordChangeDate' on entity 'User'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names

Can anybody help me on this?


Seems it just a type wrong error? Make sure in your SOQL, you use LastPasswordChangeDate__c instand of LastPasswordChangeDate 
Admin User 1158Admin User 1158
@Abhik Dey, Have you able to resolve the issue? If yes can you shed some light on the resolution. Thanks.
Abhik DeyAbhik Dey
@Admin User 1158: The issue is resolved. What i did was the change in the class version , i downgrade the version to 34.0.
And it worked for me. You can try that and let me know the results.