Skip to main content

#Trailhead Challenges1,428 discussing

Hands-on challenges are the “secret sauce” of Trailhead. Before searching for solutions to superbadge challenges, review the Salesforce Certification Program Agreement and Policies. ** NOTE ** : If you were able to get a response that solved your issue, please mark it as the 'Best Answer' to help other Trailblazers. If the issue persists after 48 hours, create a Trailhead Help case at https://help.salesforce.com/s/support for further assistance.

node:internal/modules/cjs/loader:1386 

  throw err; 

  ^ 

 

    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)      

    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19) 

    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)         

    at Function._load (node:internal/modules/cjs/loader:1192:37) 

    at TracingChannel.traceSync (node:diagnostics_channel:322:14) 

    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) 

    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) 

    at node:internal/main/run_main_module:36:49 { 

  code: 'MODULE_NOT_FOUND', 

  requireStack: [] 

 

Node.js v22.19.0 

PS 

C:\Users\USER

> sfdx 

node:internal/modules/cjs/loader:1386 

  throw err; 

  ^ 

 

    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)      

    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19) 

    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)         

    at Function._load (node:internal/modules/cjs/loader:1192:37) 

    at TracingChannel.traceSync (node:diagnostics_channel:322:14) 

    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) 

    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) 

    at node:internal/main/run_main_module:36:49 { 

  code: 'MODULE_NOT_FOUND', 

  requireStack: [] 

 

Node.js v22.19.0 

PS 

C:\Users\USER

> sf 

The Salesforce CLI 

 

VERSION 

  @salesforce/cli/2.109.6 win32-x64 node-v22.19.0 

 

USAGE 

  $ sf [COMMAND] 

 

TOPICS 

  agent            Commands to work with agents. 

  alias            Use the alias commands to manage your aliases. 

  analytics        Work with analytics assets. 

  apex             Use the apex commands to create Apex classes, execute         

                   anonymous blocks, view your logs, run Apex tests, and view    

                   Apex test results. 

  api              Commands to interact with API calls. 

  cmdt             Generate a field for a custom metadata type based on the      

                   provided field type. 

  code-analyzer    Output the current state of configuration for Code Analyzer.  

  community        Create an Experience Cloud site using a template. 

  config           Commands to configure Salesforce CLI. 

  data             Manage records in your org. 

  dev              Audit messages in a plugin's messages directory to locate     

                   unused messages and missing messages that have references in  

                   source code. 

  flow             Display test results for a specific asynchronous test run.    

  force            Legacy commands for backward compatibility. 

  info             Access Salesforce CLI information from the command line.      

  lightning        Work with Lightning Web and Aura components. 

  logic            Use the logic commands to run Apex and Flow tests and view    

                   the test results. 

  org              Commands to create and manage orgs and scratch org users.     

  package          Commands to develop and install unlocked packages and managed                   2GP packages. 

  package1         Commands to develop first-generation managed and unmanaged    

                   packages. 

  plugins          list installed plugins 

  project          Work with projects, such as deploy and retrieve metadata.     

  schema           Generate metadata files. 

  sobject          Commands to interact with Salesforce objects. 

  static-resource  Work with static resources. 

  update           update the sf CLI 

  version 

 

COMMANDS 

  autocomplete  Display autocomplete installation instructions. 

  commands      List all sf commands. 

  doctor        Gather CLI configuration data and run diagnostic tests to        

                discover and report potential problems in your environment.      

  help          Display help for sf. 

  plugins       List installed plugins. 

  search        Search for a command. 

  update        update the sf CLI 

  version 

  whatsnew      Display Salesforce CLI release notes on the command line.        

  which         Show which plugin a command is in. 

 

PS 

C:\Users\USER

> sfdx 

node:internal/modules/cjs/loader:1386 

  throw err; 

  ^ 

 

Error: Cannot find module '

C:\Users\USER\undefined' 

    at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)      

    at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19) 

    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)         

    at Function._load (node:internal/modules/cjs/loader:1192:37) 

    at TracingChannel.traceSync (node:diagnostics_channel:322:14) 

    at wrapModuleLoad (node:internal/modules/cjs/loader:237:24) 

    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5) 

    at node:internal/main/run_main_module:36:49 { 

  code: 'MODULE_NOT_FOUND', 

  requireStack: [] 

 

Node.js v22.19.0                                           

 

After install the salsforce cli I got this error on vs code terminal     

 

 

 

#Trailhead Challenges

3 answers
  1. Manish Kumar Yadav (Hitachi Energy) Forum Ambassador
    Oct 29, 2025, 6:00 PM

    Above error is valid because you are running sfdx which is depricated, 

     

    You should run only sf beacuse Salesforce has deprecated the old sfdx CLI in favor of sf.

    sf --version

    Thanks, 

    Manish Kumar Yadav 

    Trailblazer Community Forum Ambassadors 

     

     

0/9000

When I created a flow according to the guide and executed the flow test (successfully), I clicked a button to check the module, but got an error: "The text template resource Default_Description is not set to be viewed as plain text." 

I set this text template as plain text, but the error still appears 

 

I can't complete the module

 

image.png

 

 

 

#Trailhead Challenges

6 answers
0/9000
Hello community,

 

I have a problem with my new created Developer Edition including Einstein Lead Scoring. I did all the steps of Trailhead Badge "Prioritize Leads with Einstein Lead Scoring". But the step for initially scoring the leads is failing. I get the following error message:

 

"Modeling Failed. We are unable to set up Einstein Lead Scoring for your org at this time. Please contact Salesforce Support."

 

Developer Edition including Einstein Lead Scoring - Initial scoring is failing

 

I already created a case to support but they told me that they cannot give support for Developer Orgs. They only give support for LIve Orgs.

 

Did someone of you have this problem with Einstein in this specific Dev Org ? How can I solve this ?

 

Thanks and regards.

 

Hagen
10 answers
  1. May 28, 2020, 9:37 PM
    Hello Guust,

     

    sorry for my late response.

     

    Well, the only thing you can do is to create enough data in your environment so that it copes Einsteins needs. Thats what I described above. I created an Apex class that did this job. After that I was able to test the Einstein functionality.

     

    I did not test anymore whether this has been fixed in meantime by Salesforce. But if not I think this is the only possibility that worked for me.

     

    Please let me know if you need more information.

     

    Regards.

     

    Hagen
0/9000
4 answers
  1. Jun 27, 2025, 9:42 AM

    This error usually happens because the challenge requires that lead records can be created using only the standard required fields—no extra fields or custom data should be necessary to insert a Lead record in your org.

    Here’s what you can check and try:

    1. Remove any custom required fields on the Lead object. Go to Object Manager > Lead > Fields & Relationships and look for any custom fields that are marked as Required. Make sure none are required because the challenge expects only the standard fields to be mandatory.
    2. Validate Lead_Rating__c formula field: Ensure your formula is correct and doesn’t reference any fields or conditions that might prevent record creation.
    3. Test inserting leads with minimal data: Try creating lead records manually or via anonymous Apex with only the standard required fields like Last Name and Company. If that works without errors, you should be good.
    4. Check for Validation Rules or Triggers: Sometimes validation rules or Apex triggers require extra fields or enforce conditions. Disable or adjust those to allow simple lead insertion.

    After making sure the above points are addressed, try submitting the challenge again.

0/9000