Hello everyone,
I have an issue with the challenge Create Validation Rules. I tried to the options I observed in other post but still is coming the next error....
An unexpected error occurred while inserting Account records and we couldn't check your work. Make sure the validation rule error message is correct, and that account records can be inserted in this org, then click "Check Challenge" again.
Does anyone solve the problem? Maybe I need to create a new playground? But if so, I need to complete all the module again??
Thank you in advance
Best,
Maria
#Trailhead Challenges
Hi, @MJ Moure
This is a common mistake that occurs because many previous Challenges were held on the same Playground. Most likely, in one of the previous Challenges, there was a task to create a Trigger or Validation Rule, and now it is affecting your current task.
So, how can you solve this problem? There are three ways to resolve it.
I. Click Gear Icon --> Setup --> Object manager --> Oppurtunity --> Fields & Relationsships --> Close Reason --> Edit --> Picklist (Multi-Select) Options --> Deselect the checkbox “Restrict picklist to the values defined in the value set”.
II. You can go to the corresponding object and check if there are any related Validation Rules:
1. Click Gear Icon --> Setup --> Object Manager
2. Select Account object and from the left side menu click "Validation Rules":
There should be no Validation Rules here. If there are any, you need to deactivate/delete them.
Additionally, there might be a Trigger created. To view your list of Triggers, you can on the menu search field type "Trigger" and select "Apex Triggers":
Here you should also not have any triggers. If there are any, they can affect your Account object.
III. You can create a new Playground and complete this task there.
To do this:
1. Login Trailhead Site
2. Open "Hands-On Orgs"
3. Click "Create Playground"
After waiting a few minutes, a new Playground will be created.
!!! Also too, make sure that all Challenges from this topic are completed in the same Playground. Each subsequent Challenge builds on the previous one.
Sincerely,
Mykhailo Vdovychenko
Bringing Cloud Excellence with IBVCLOUD OÜ