I am trying to create a custom Visualforce page with a custom controller by following the example on this page:
http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_custom.htm
However, when I view the page that uses the code given in the example, I get this error:
List has no rows for assignment to SObject An unexpected error has occurred. Your development organization has been notified.
I just copied and pasted the code from the example into a custom class and a custom visualforce page. How do I fix this issue? Thanks!