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
sai manojsai manoj 

in trailhead module name is Quick Start: Apex ==>Add a Method to the Class i getting an error

User-added image
SabrentSabrent
The accounts are not being updated because there's a validation rule on Account object that prevented your code from running successfully. The error you got mentions it's the Account Number field. It's expecting a numberic value in this field.

Assuming you are in lightning, go and check your validation rule.

Click on Setup > Object Manager  
In the quick find, type Account
Click on the link for Account, then click on Validation Rule. 

Either make the validation rule inactive by unchecking the active checkbox or, 
go through your Accounts and make sure that all account numbers comply with the validation rule. 

Let me know if you need more clarification.