This is the one I stuck: https://trailhead.salesforce.com/content/learn/projects/customize-a-salesforce-object/create-validation-rules-1?trailmix_creator_id=strailhead&trailmix_slug=prepare-for-your-salesforce-certified-associate-credential
I've read the articles in the community telling the solutions such as:
1) creating a new playground
or
2) editing Field Dependency (won & lost) to be included all as the picture below.
I've done both ways but still have the issue saying,
"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."
Please help me, anyone know another solution?
Thanks in advance.
Hi all,
I solved my problem by creating a new playground again.
For those who are curious, since I'd been working on the project(Customize a Salesforce Object) in the language as Korean (Not English), I changed the locale/language to English and tried again from the beginning in the latest trial.
It finally worked but still I don't know the reason why I was stuck in.
Anyway, thanks for all of you and your comments. I've tried all the suggestions above.
Thanks for the comment.
However, when I tried those two ways, I got the errors like these:
- ISPICKVAL(StageName, "Closed Lost") && ISBLANK(TEXT(Close_Reason__c))
→ This one got me the syntax check error since the type of field ‘Close Reason’ is Picklist(multi-select)
Error: Field Close_Reason__c is a multi-select picklist field. Multi-select picklist fields are only supported in certain functions.
- ISPICKVAL(StageName, "Closed Lost") && INCLUDES(Close_Reason__c, "")
→ This one’s syntax check got no error. However, when I execute the playground, I got the error message like this:
We couldn't find the expected Error Condition Formula on the validation rule named 'Close_Reason_Required_When_Lost'.
Hope my efforts may help others!
Thank you! I finally won the Associate Trailmix race!