You need to sign in to do that
Don't have an account?
etaylor2k
System.QueryException: List has no rows for assignment to SObject
I am testing my apex class and my test returns a "System.QueryException: List has no rows for assignment to SObject" error. I run the same query in my explorer and it returns the values. What could the problem be?
Since last release, you need to use
notation before your test method. (and if you have testmethod keyword in your declaration you have to take it out).
Another option is to downgrade the API version to 23.
Regards.
All Answers
Since last release, you need to use
notation before your test method. (and if you have testmethod keyword in your declaration you have to take it out).
Another option is to downgrade the API version to 23.
Regards.
SeAIVa,