So I was quering Account a = [Select
name from account where id=: strld];
and an exception was thrown: System.QueryExceptoin:
List has no rows for assignment to SObject.
Here is the mistake I made and how to fix it:
List<Account>lst = [Select name from account where id=: strld];
Really awesome blog. Useful information and knowledge. Thanks for posting this blog. Keep sharing more blogs again soon.
ReplyDeleteUI Development Training in Hyderabad
RPA Training in Hyderabad
Python Training in Hyderabad
Mean Development Training in Hyderabad