You need to sign in to do that
Don't have an account?

System.QueryException: List has no rows for assignment to SObject
When i quering Account a = [Select name from acoount where id =: strId];
it throws exception System.QueryException: List has no rows for assignment to SObject
i got it by making following correction.
List<Account> lst = [Select name from acoount where id =: strId];
All Answers
i got it by making following correction.
List<Account> lst = [Select name from acoount where id =: strId];
Thanks for the answer
Thanks