+ Start a Discussion
Derek Bennett 5Derek Bennett 5 

Security Specialist Superbadge challenge 2 error


I am stuck on superbadge challenge #2. Origianlly the error i kept receiving said that my opportunity sharing rules were not correct, and now that I've gotten those correct I still cannot pass the challenge.
Heres the error I cant seem to get pass on trailhead:

Challenge Not yet complete... here's what's wrong: 
The unit tests in the managed package have not passed successfully. Make sure you run all test in your org before checking this section. Ensure that they all pass.

On the developer console I get this error message:
System.QueryException: List has no rows for assignment to SObject

How do I troubleshot this? or what am I doing wrong? 

1. opportunities are set to private
2. public group has been created (project managers) carla rodriguiz 
3. sharing rules are correct and match that of others who have passed
4. two opportunity records are created for samantha, one with stage closed won, next with type existing customer-upgrade
5. I am using a newly created org, and have uninstalled and reinstalled the package multiple times
6. I even logged in as samantha and created the two opportunities

What do I need to do for the test to pass sucessfully? 
Kumar P246Kumar P246
i am also stuck with the same thing
Kumar P246Kumar P246
Hi Team,
Getting this Error, Have been pulling my brains past 13 hours..
Pleaase help me out

User-added image
Jessica McGrath 20Jessica McGrath 20

Hi Kumar, I have same issue - Did you get this resolved? I am going around in circles - ahhhh.. Love some help
Krasi IvanovKrasi Ivanov
Hi everyone, absolutely the same problem here. Any solutions please? 
Anyone have a solution? I go to Apex Test Execution > Select Tests... > Run and nothing happens. It doesn't matter if I check to skip code coverate or not.
Chris Hyde 12Chris Hyde 12
Also having exactly the same problem. 
Revelation BloemRevelation Bloem
Please assist with the below error am getting Security Superbadge Challenge 2. 
User-added image

Error Message  : System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, We can't save                              this record because the “Opportunity Management” process failed. Give your Salesforce admin these details. <b>An unhandled                                fault has occurred in this flow</b><br>An unhandled fault has occurred while processing the flow. Please contact your system                                  administrator for more information.: []

Vasupradha RaghunathVasupradha Raghunath
Hi Derek, 
I know its been 3 years , but i was just wondering if you figured out the solution ! Breaking my head with this , any help would be appreciated! Cheers.
Govardhan Reddy MalpatelGovardhan Reddy Malpatel
Hii Everyone. 
Even I have the same issue right now. The challange is not able to complete. Need help to complete the challenge.