
When I complete the exercises, and try to Verify, the verification fails with:
Step not yet complete in My Trailhead Playground 3
We could not find Apex class named 'AccountController'.
I have made sure that my code has been deployed with the VSCode plugin:
=== Deployed Source
STATE FULL NAME TYPE PROJECT PATH
──────────────────────────────
Add AccountController ApexClass force-app/main/default/classes/AccountController.cls
Add AccountController ApexClass force-app/main/default/classes/AccountController.cls-meta.xml
When I create a trailhead playground, click Launch, and click verify, it appears that the generated source file is not being placed in the Trailhead Playground.
What am I missing?
Thanks!
=angelko
13 réponses
Hi Angelko,
If you have multiple orgs connected or authorized in VSCode, then your code must be getting dpeloyed to one of the default org set.
Try setting the org you want to use as default using below command:
sfdx force:config:set defaultusername = 'Username that you want to use'
And then confirm the list of orgs by using below command:
sfdx force:org:list