function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Zach TorreZach Torre 

Execute SOQL and SOSL Queries

Hello Trailhead Community, 

I've read this post many times and followed similar code executions from previous posters. 
I've refreshed the developer instance and completely relauched Trailhead and Dev Consoles. 

I'm still getting failed notificaiton: 

Challenge Not yet complete... here's what's wrong: 
Could not find the contact's name in the debug log. Be sure to run a query for your record, and to write your contact's name to the debug log using the System.debug() method.

Here is my code:

User-added image

Results: 

User-added image

Anyone have any thoughts, please contact me directly if your SFDC employee. 

Thank you!!
Paul S.Paul S.
Try FullName or (if that doesn't work), try the debug like this...Trailhead can be very fickle when it decides it's looking for something a specific way.
System.debug(c.FirstName + ' ' + c.LastName);

 
Dale MendezDale Mendez
Watch out for the ', ' there is a space after the comma.