Skip to main content
I am attempting to complete the Execute SOQL and SOSL Queries in the Developer Console Basics module and the challenge is creating logs that have nothing to do with the SOSL inline query that is requested. I have executed the following code in the Execute anonymous window and the challenge still does not show as completed.

 

List<List<sObject>> searchList = [FIND 'Mission Control' IN ALL FIELDS

RETURNING Contact(FirstName, LastName,

Phone, Email, Description)];

Contact[] searchContacts = (Contact[])searchList[0];

for (Contact c : searchContacts) {

System.debug(c.LastName + ',' + c.FirstName);

}

So even with the above the challenge still returns with an error of:

 

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.

 
20 answers
  1. Jan 29, 2017, 3:40 AM
    I had the same issue. I was able to pass the challenge by connecting to a fresh dev org, inserting the contact, and executing the SOSL statement.