Wednesday, January 23, 2019

Line: 15, Column: 1 System.QueryException: List has no rows for assignment to SObject

you usually encounter this error when your soql query doesn't return any data and you tried to store the results retrieved from the SOQL to the sObject type variable or list of sobject type variable.