You need to sign in to do that
Don't have an account?
Raj01
No such column 'lastpasswordchangedate' on entity 'User' started failing recently
Hi,
Class started throwing below errom from yesterday. We have not updated anything recently.
Error : System.QueryException: No such column 'lastpasswordchangedate' on entity 'User'
Observations:
Class started throwing below errom from yesterday. We have not updated anything recently.
Error : System.QueryException: No such column 'lastpasswordchangedate' on entity 'User'
Observations:
- This class is failing only in sandbox but not in prod.
- Sandbox Version - Summer '20 Patch 10 and Spring '20 Patch 23.21
- If i update the class to without sharing then it is working fine.
- The class is failing only while testing the functionlity using community user but it is perfectly working fine for internal user.
if it helps please like and if it solves your issue mark as correct, it may help others asking the same
You must use without sharing in order for a community user to access the User object. Similar questions was answered here
You can try logging a case with support if you believe this is a release related issue
Anudeep
I can do the changes but my question is, why it was working till yesteday and the same code is working in prod now but not in Sandbox. Any idea?