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
Saugandh KSaugandh K 

Deployement validation error in MutlipicklistFrequency_PostInstall and PageControllerTestMethods_2

When I give 'Run all test' while deploying the following error occurs. 
User-added image
There is an App 'Multi-Select Picklist Frequency Reports'  which is the only related thing I could understand from the error.
User-added image

User-added image
This appeared suddenly and I believe I have not worked on any of the following classes. Please guide me to find out the root cause and to solve it.
Niraj Kr SinghNiraj Kr Singh
Hi Saugandh,

Issue : List Has No Row For Assignment to SObject
For this you can check you code/ line no and update your code like this:

You have written like this (Which is giving error)
Account a = [select id, name from Account where name = 'test' ];

Instead of using this we should use like that:
List<Account> lstAccount  = [select id, name from Account where name = 'test'];
if (lstAccount.size() > 0)
{
 Account a = lstAccount.get(0);
}

Please let me know if there is any issue.

Thanks
Niraj