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

"List has no rows for assignment to SObject" in Einstein Image Classification Trailhead
Cannot figure out why this isn't working for me... are there steps missing in this?!
https://trailhead.salesforce.com/trails/get_smart_einstein/projects/predictive_vision_apex/steps/predictive_vision_apex_vf_page
https://trailhead.salesforce.com/trails/get_smart_einstein/projects/predictive_vision_apex/steps/predictive_vision_apex_vf_page
All Answers
This error occurs generally when the result set from the SOQL query that you have written, is being attempted to assign to a single Sobject instance and the executed query returns either more than a single record or no records at all in the result set.
A Soql query always returns a List<Sobject> based on the Sobject being queried. For e.g. if you are trying to query a list of Accounts you should always assign the result set returned from the query as shown below, instead of assigning it to a single instance of Sobject inspite of the query returning a single row. One other quick thing to check is to copy the executed query in your code and verify the result set returned by the same using Developer Console.
Refer this help article (https://help.salesforce.com/articleView?id=000159853&type=1) from Salesforce to understand more about this error.
Please do not forget to mark this thread as SOLVED and asnwer as the BEST ANSWER if it helps address your issue.
https://trailhead.salesforce.com/trails/get_smart_einstein/projects/predictive_vision_apex/steps/predictive_vision_apex_vf_page
https://c.ap5.visual.force.com/apex/Predict