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
Clark AndersonClark Anderson 

Lightning Component Framework Specialist superbadge challenge 8 error

Challenge Not yet complete... here's what's wrong:  
The BoatReviews Apex controller's getAll() function doesn't return the right list of the fields from the BoatReview custom object.

I am getting the above error. 

I have'nt worked on this since before the Christmas Holiday but have spent most of the last two days trying to resolve this.

I have tried different playgrounds and hard-coding the results back from the Apex class.
Jason HardyJason Hardy
Are you passing it in a parameter like it stipulates? Apex method is supposed to get a parameter passed to it from the helper call. It sounds like it's not getting passed to the getAll method. I would re-read the business requirements and make sure your setup correctly. 
Clark AndersonClark Anderson
The workaround to get this to pass the "grader" bot was to move the SOQL into the getAll() function. I had it in another class following OO design principles.
Jason HardyJason Hardy
Odd I wouldn't have thought that would have caused the particular error you described. Glad you got it figured out!