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.
This Trailhead error usually means the org can’t create Opportunity records because of validation rules, required fields, automation (Flow/Trigger), or missing permissions. Check that Opportunities are enabled, your user has “Create” access for Opportunity, and there are no custom validation rules or mandatory fields blocking record creation. Also review active Flows, Apex triggers, or Process Builder automations that may fail during insert. After fixing the issue, try “Check Challenge” again or use a fresh Trailhead Playground if the org is heavily customized.