Skip to main content

#Trailhead Challenges1,606 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 getting an error message while trying to Validate the challenge on Create Validation Rules.  Looking at the help topics, I tried unselecting the "Restrict picklist to the values defined in the value set" Picklist (Multi-Select) Options.  This had no effect.   

   

Unable to complete Customize a Salesforce Object  Create Validation Rules

 

 

 

#Trailhead Challenges

6 answers
0/9000

AND( 

    NOT(ISBLANK(AccountId)), 

    MailingPostalCode <> Account.ShippingPostalCode 

 

Why am I getting error for the below mentioned validation rule ?

 

  

 

#Trailhead Challenges

6 answers
  1. Divya Chauhan (Kcloud Technologies) Forum Ambassador
    May 22, 8:25 AM

    Hello @Asha Parwani

     

    try this formula--> 

    AND( 

        NOT(ISBLANK(AccountId)), 

        MailingPostalCode <> Account.ShippingPostalCode 

    )

0/9000

An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team.

 

#Trailhead Challenges

0/9000

In the "Set Organization-Wide Defaults and Create a Role Hierarchy" trailblazer training I am getting the error "We couldn't find the field 'Status' on the Position object. Review the instructions for creating the field name."  However when I go into my Object Manager and select "Position" and go to Fields & Relationships, I can see the "Status" Field set to picklist with the appropriate options.  I have deleted and recreated this Object and Field several times with no luck.  Please help! 

 

#Trailhead Challenges

9 answers
  1. Jan 26, 2025, 3:31 PM

    Agree with @Steven Trumble! Everything seems to be perfect. @Justin Koehle, Can you check the below points?

    1. Clear your browser cache or log out and back into Salesforce. Sometimes changes don't appear immediately.
    2. Make sure there are no validation rules or other configurations blocking the creation or visibility of the field.
    3. Make sure your profile has complete access to this field/object, including read, create, and edit, and ensure that field is visible for your profile.
    4. Check that a field is added to the page layout with the correct record type.

    If the field is created correctly and still causing the error, try deleting it again and creating it from scratch, following the exact instructions in the challenge. Hope that helps!

0/9000
Hi Everyone,

 

I am currently taking the "Prepare for Your Salesforce Administrator Credential" trail and came across an issue.

 

In one of the steps in the exercise (Customize a Salesforce--> Object Create Validation Rules), a formula is given to use to generate a validation.

 

[Enter this formula in the Error Condition Formula box:

 

ISPICKVAL( StageName ,"Closed Lost") && ISBLANK( Close_Reason__c )]

 

However, when I use this formula and check Syntax, it throws an error saying "Error: Field Close_Reason__c is a picklist field. Picklist fields are only supported in certain functions.". I removed this error by using function TEXT surrounding the picklist Close_Reason__c but the system is not accepting that formula and not allowing me to complete the chapter.

 

Has anyone else faced this issue? How to fix and complete this exercise?
0/9000

I keep getting the below message. I've gone over each step multiple times and continue to get stuck. 

 

Step not yet complete in My Trailhead Playground 1

An unexpected error occurred while inserting Opportunity records and we couldn't check your work. Make sure Opportunity records can be inserted in this org, and click "Check Challenge" again. If this continues, contact the Trailhead Help team. 

 

#Trailhead Challenges

12 answers
  1. Feb 18, 8:32 PM

    Hi , 

     

    "Try unchecking the checkbox "deselect the checkbox Restrict picklist to the values ​​defined in the value set" in Picklist (Multi-Select) Options in the settings for "Close Reason"." was the good solution for me to resolve this problem. 

     

     

    Hi ,

     

     

0/9000

There is Hands on challenge, which is giving error.

 

  • Challenge: 

Create an Apex class that returns accounts.

Create an Apex class that returns a List of Account objects for a user-specified state.

  • Create an Apex class that contains a static method:
    • Name: AccountUtils
    • Method name: accountsByState
    • The method must return the ID and name of all Account objects that match the BillingState for the state abbreviation passed to the method
  •  Error Message: Challenge not yet complete in tejas.barlota@prod.com
  • Executing the 'accountsByState' method on 'AccountUtils' failed. Make sure that you named your method correctly, that it's public and static, and that it accepts a String and returns a List of Account objects

  • My Code/Class Snipet: 

public class AccountUtils {

public static List<Account> accountsByState(String stateVal){

List<Account> accountList = [Select id,name,BillingState from Account where BillingState = :stateVal];

return accountList;

}

}

Can anyone help me quickly, i tried to search TrailblazerCommunity, Couple of people faced similar issue. 

13 answers
  1. Sep 27, 2023, 1:06 PM

    Thanks @Craig Munster 

     

    I tried to remove ID field as well, but same error came again. 

    So, I tried to run it by myself, I observed that one of the validation rules was triggered when inserting the new account. 

    So, whenever we try to validate the challenge, Salesforce is inserting an account and it throws error due to validation rule, and we got Salesforce error in trail challenge. So, I deactivated validation rule and then tried to validate the challenge, it worked successfully. 

    It was not our code issue, its existing validation rule which I had implemented caused the issue. 

     

    Anyways thanks for your help, much appreciated.

0/9000
0/9000

Hi,  

I am receiving an error in my last step while clicking the convert button as below.  

Getting error while converting

 

 

 

#Trailhead Challenges

3 answers
  1. May 16, 2:47 PM

    @Tanushree Debnath this is a Lead Conversion field mapping issue.

    The error is specifically saying that Salesforce needs a value for this Account field during conversion: Account.Support_Plan_Expiration_Date__c

    To fix it, create a matching custom field on Lead, then map it to the Account field.

    Go to: Setup -> Object Manager -> Lead -> Fields & Relationships -> Map Lead Fields

    Then map the Lead field to: Account.Support_Plan_Expiration_Date__c

    Salesforce’s lead field mapping help explains this process here: (Salesforce)

    Also check whether Support_Plan_Expiration_Date__c is marked as required on Account, or required by a validation rule. If it is required, the Lead must have a valid value before conversion, otherwise the Account cannot be created.

    There are similar community posts for this same lead conversion mapping error here: (trailhead.salesforce.com)

    After mapping the field, update the Lead with the support plan expiration date and try converting again.

0/9000