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
Aanchal AdhikariAanchal Adhikari 

Issue with Identity Verification. Not receiving any verification code in phone

I created a sandbox of license type 'developer' and while after logging in from the sandbox login page, I'm stuck at the verification page as I don't get any verification code in my phone. I tried troubleshooting by rebooting my phone. I tried resending the code several times. I also tried the salesforce authenticator to generate temporary code for myself(I have system administrator rights) but the temporary code didn't work( the generated code was also longer than the one expected by the verification page). What do I do to access the sandbox environment? How do I configure so that I get verification code in the email instead of sms?
Best Answer chosen by Aanchal Adhikari
Khan AnasKhan Anas (Salesforce Developers) 
Hi Aanchal,

Greetings to you!

Do you have SMS identity confirmation enabled? Please refer to the below link which might help you.

https://help.salesforce.com/articleView?id=000198756&language=en_US&type=1

According to Salesforce Knowledge Article (https://help.salesforce.com/articleView?id=000268987&language=en_US&type=1):

SMS (Text Message) Verification:
1. Fully reboot or restart the mobile device to refresh the device’s Carrier connection.
2. If you receive the following error, please wait an hour after the first of the 5 attempts, and request another code. Note: Salesforce has a limit of 5 SMS verification codes per hour.
Error Message: 'We can't send you a verification code right now. You may have attempted too many verifications in the last hour. Try again later.' 
Example: If a SMS Verification Code is requested at 9:00am, then again at 9:05, 9:15, 9:20, and 9:30 respectively, the next code would not send until after 10:00am.

If you need immediate access, and the above steps did not work, you may use these workarounds:
 
1. An administrator may add your IP address to the Trusted IP list under Setup | Security Controls | Network Access. To learn how, please review Set Trusted IP Ranges for Your Organization (https://help.salesforce.com/articleView?id=security_networkaccess.htm&type=5).
 
2. If you are not getting the code via email, and you have SMS verification enabled in your org, you may have an administrator add a mobile number to send the code via SMS (Text Message). To learn how, please review How to verify a valid mobile number (https://help.salesforce.com/articleView?id=000199287&type=1&language=en_US).

Note: If the above troubleshooting steps do not resolve your issue, please file a case with Salesforce Support.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Aanchal,

Greetings to you!

Do you have SMS identity confirmation enabled? Please refer to the below link which might help you.

https://help.salesforce.com/articleView?id=000198756&language=en_US&type=1

According to Salesforce Knowledge Article (https://help.salesforce.com/articleView?id=000268987&language=en_US&type=1):

SMS (Text Message) Verification:
1. Fully reboot or restart the mobile device to refresh the device’s Carrier connection.
2. If you receive the following error, please wait an hour after the first of the 5 attempts, and request another code. Note: Salesforce has a limit of 5 SMS verification codes per hour.
Error Message: 'We can't send you a verification code right now. You may have attempted too many verifications in the last hour. Try again later.' 
Example: If a SMS Verification Code is requested at 9:00am, then again at 9:05, 9:15, 9:20, and 9:30 respectively, the next code would not send until after 10:00am.

If you need immediate access, and the above steps did not work, you may use these workarounds:
 
1. An administrator may add your IP address to the Trusted IP list under Setup | Security Controls | Network Access. To learn how, please review Set Trusted IP Ranges for Your Organization (https://help.salesforce.com/articleView?id=security_networkaccess.htm&type=5).
 
2. If you are not getting the code via email, and you have SMS verification enabled in your org, you may have an administrator add a mobile number to send the code via SMS (Text Message). To learn how, please review How to verify a valid mobile number (https://help.salesforce.com/articleView?id=000199287&type=1&language=en_US).

Note: If the above troubleshooting steps do not resolve your issue, please file a case with Salesforce Support.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Aanchal AdhikariAanchal Adhikari
Thanks. Somehow I got the verification code today. There might have been some kind of issue with salesforce itself.