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
Adeline MooreAdeline Moore 

trailhead project Apex

I am trying to pass Quick start Apex Step two. I have copy and pasted the code given

public class OlderAcccountsUtility {
public static void updateOlderAccounts() {
// Get the 5 oldest accounts
Account[] oldAccounts = [SELECT Id, Description FROM Account ORDER BY CreatedDate ASC LIMIT 5];
// loop through them and update the Description field
for (Account acct : oldAccounts) {
acct.Description = 'Heritage Account';
}
// save the change you made
update oldAccounts;


but I am getting the below error message

Step Not yet complete... here's what's wrong: 
The 'updateOlderAccounts' method did not update account records as expected 
Note: you may run into errors if you've skipped previous steps.

Can Someone please look over what I am doing wrong?
Best Answer chosen by Adeline Moore
Adeline MooreAdeline Moore
I figured it out I pasted after the bracket instead of between the brackets. 

All Answers

Adeline MooreAdeline Moore
I figured it out I pasted after the bracket instead of between the brackets. 
This was selected as the best answer
Aishwarya P 4Aishwarya P 4
I'm getting the same error . Could you please eloborate on what changes to be made?
Todd KadasTodd Kadas
did you remember to save first?