Getting this error in Formula super badge
#Trailhead Challenges
4 Antworten
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:
- 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.
- Validate Lead_Rating__c formula field: Ensure your formula is correct and doesn’t reference any fields or conditions that might prevent record creation.
- 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.
- 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.