Skip to main content

#Trailhead Challenges1,622 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.

I am working on the Trailhead module "Agent Customization with Apex". 

 

The challenge says: 

"Be sure you finished the setup steps in the unit." 

 

When I open Salesforce Go, Agentforce Studio and Agentforce (Default) both show a lock icon. The Get Started, Turn On, and Confirm buttons do not appear. 

 

I tested multiple Trailhead Playgrounds and all Salesforce Go features appear locked. 

 

Challenge error: 

"It looks like Agentforce Studio has not been turned on in Salesforce Go." 

 

How can I enable Agentforce Studio or get a Playground with the required Agentforce setup? 

 

#Trailhead Challenges  #Trailhead  #Agentforce

0/9000

I tried adding them and this is my code: 

 

trigger AccountAddressTrigger on Account (before insert, before update) { 

    for(Account a : Trigger.new){ 

        if(a.Match_Billing_Address__c == true) { 

            a.Shipping_Postal_Code__c = a.Billing_Postal_Code__c; 

        } 

    } 

 

My error is: 

We updated an account that had 'Match_Billing_Address__c' set to true. We expected the trigger to fire, but it didn’t. Make sure the trigger fires if 'Match_Billing_Address__c' is true.

 

Has anyone else been able to make this challange work with the same problem?   Edit: I did create a new playground, but it also doesn't have the postal code fields

6 answers
  1. Feb 9, 2025, 12:23 PM

    Those field are part of standard 'BillingAddress' and 'ShippingAddress' fields of Account Object. 

    You might not be able to find it in Object Manager, but they are part of Address fields. Please use ShippingPostalCode and BillingPostalCode as fields and it will work. 

     

    You can verify their existince using SOQL query, Workbench or Salesforce Inspector or any similar tools. Address is a compound field consisting of Street,City,State.PostalCode etc. 

     

    Those field are part of standard 'BillingAddress' and 'ShippingAddress' fields of Account Object. You might not be able to find it in Object Manager, but they are part of Address fields.

     

     

0/9000
11 answers
  1. Aug 25, 2025, 9:53 PM

    I am assuming you are working on this module https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/build-reusable-ui-component-with-lightning-web-components

     

     

    The PROBLEMS tab is explicitly telling you that it has found 7 distinct errors or warnings within the files of your project. A Lightning Web Component with even a single syntax error in its HTML or JavaScript file cannot be successfully deployed to a Salesforce org.

     

    From module

    Part 1: You are first asked to copy and paste this initial block of code:

    import { LightningElement, wire } from "lwc";

    import getHouses from "@salesforce/apex/HouseService.getRecords";

    export default class HousingMap extends LightningElement {

    mapMarkers;

    error;

    @wire(getHouses)

    wiredHouses({ error, data }) {

    if (data) {

    console.log(data);

    }

    }

    }

    Part 2: Immediately after, the instructions say: "Next, let's add code to transform the data... Replace the code after if (data) { with the following lines."

    This is the step where things likely went wrong. paste the second block of code after the console.log(data); line instead of replacing

    it.  

     

    Go to your housingMap.js file and ensure it looks exactly like the final version provided in the instructions. This is the complete, correct code:

    import { LightningElement, wire } from "lwc";

    import getHouses from "@salesforce/apex/HouseService.getRecords";

    export default class HousingMap extends LightningElement {

    mapMarkers;

    error;

    @wire(getHouses)

    wiredHouses({ error, data }) {

    if (data) {

    // Use JavaScript Map function to transform the Apex method response wired to the component into the format required by lightning-map

    this.mapMarkers = data.map((element) => {

    return {

    location: {

    Street: element.Address__c,

    City: element.City__c,

    State: element.State__c

    },

    title: element.Name

    };

    });

    this.error = undefined;

    } else if (error) {

    this.error = error;

    this.mapMarkers = undefined;

    }

    }

    }

     

    save changes and deploy make sure your problems tab shouldn't have any errors. Which means deployment successful.

0/9000

Hands-on Challenge:  Create an Apex class with a method that returns a list of strings

My code

 

public class StringListTest{

    public static List<String> generateStringList(Integer n) {

        List<String> List1 = new List<String>();

        for (Integer i = 0; i <= n; i++) {

            List1.add('Test ' + i);

        }

        return List1;

    }

}

 

Error: Challenge not yet complete in the org. Executing the method 'generateStringList' failed. Either the method does not exist, is not static, or does not return the proper number of strings.

 

No problems found!

 

#Trailhead Challenges

0/9000

Alas, I'm on the last trail for Legend.. 

  1. Get Started with the Models API>Create a Models API Lightning Web Component

I've run into the "We can’t find an Apex class named DashboardController.".  I've looked at a lot if not all the responses and tried them all but to no avail.  The main thing is when I try to run "Deploy this source to org", it fails.  Somehow I must've pointed it to a different org initially.  This all gets confusing at. times.  Any "easy button" fixes or commands I can run?  Otherwise, How can I reset this so I get a new org?  Thanks.

 

#Trailhead Challenges  #Agentblazer_Legend

19 answers
0/9000

Hello - I continue to receive "your Agent has an error" in the section where I am validating my Basic Agent. Every time I preview, the error pops up and I have selected both Einstein basic agent profiles. This is preventing me from moving on. Please help 

 

#Trailhead Challenges

2 answers
  1. Apr 7, 6:25 PM

    The "Your Agent has an error" message in Agentforce Builder during Preview typically indicates a configuration or setup issue. Here are the most common causes and fixes:

    Steps to troubleshoot: 

    1. Check Einstein User Licenses: Go to Setup [arrow] Users [arrow] Permission Sets. Ensure both the "Einstein Agent (Einstein)" and "Einstein User (Einstein)" permission sets are assigned to your user.
    2. Verify the Agent Configuration: In Agentforce Builder, click on your agent and check: (a) the Agent User profile is set correctly, (b) at least one Topic is configured and active, and (c) all Actions within the Topic have valid Flow/Apex references.
    3. Check Agent Status: The agent must be in Active state, not Draft. Click the toggle to activate if needed.
    4. Review System Prompt: If the System Prompt has formatting issues or references undefined variables, it can cause preview errors.
    5. Try a different browser / incognito mode: Sometimes cached state causes issues in preview.
    6. Reset Trailhead Playground: If this is a badge challenge, try getting a fresh org from the challenge page and starting over.

    If the error persists after these checks, try saving the agent, refreshing the page, and previewing again. You can also check the Setup [arrow] Event Log Files for any AGENTFORCE_ERROR entries.

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. Jan 22, 2020, 1:49 PM
    @Guy Keshet

     

    Yes, it is a Dev Org which is especially created for testing Einstein Lead Scoring (see https://developer.salesforce.com/promotions/orgs/einsteinleadscoring).

     

    I already retried this and created a new one but the behaviour is still the same. There seems to be not enough data. I created a Case to Trailhead but till now I did not get a reaction.

     

    In the meantime I did some more testing: I wrote an Apex class to copy the existing leads into new ones to have enough data. This class converts 150 Leads as well to cope with the requirements of Einstein. Then while my Apex job was running I could see in the log files that another process started to work. After a closer look I recognized that it was Einstein. It started to calculate the score of the new inserted leads. After the job had finished Einstein was visible in the lead detail view and the score of the new created leads appeared.

     

    But the original leads (created by Trailhead) still had no score. After the creation of the new leads I rerun the initial scoring but it failed again.

     

    So it seems to me that the initial scoring is always failing, but new created leads are calculated. But I would not call this a "solution" because I do not know what kind of data Einstein is using for the calculation of the score of new leads if the initial scoring always fails.

     

    If I get a reaction from Trailhead support I will leave a message here.

     

    Regards.

     

    Hagen
0/9000

https://trailhead.salesforce.com/content/learn/projects/get-started-with-salesforce-development/write-business-logic-in-apex?trail_id=force_com_dev_beginner

 

 

In the trail above, I get the error below when clicking Deploy Source to org on HouseService.cls 

 

Salesforce metadata XML IntelliSense is now available.

15:43:57.691 Starting SFDX: Deploy This Source to Org

 

=== Deployed Source

No results found

 

Maximum size of request reached. Maximum size of request is 52428800 bytes. 

 

#Trailhead Challenges

0/9000