Security Specialist SuperBadge



# Step 2

エラーのオンパレード　回答用に使えるかも。
Class.sb_security.BeAwesome.createUser: line 133, column 1
Class.sb_security.BeAwesome.hugYourMother: line 91, column 1

[Set record-level security settings: I have installed package but BeAwesome' test with the 'sb_security' Namespace Prefix not showing.](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E9PiG)

**We couldn't find the Opportunity record owned by Samantha Cordero with the expected Stage. Please make sure the record exists and it contains the correct values according to the requirements.**

Thanks to everyone who responded. I ended up leaving the playground alone for a couple of days as I was getting really frustraded. Today I just tried to check the challenge again and somehow it worked!! I guess I had to wait.  If anyone has the same issue after following the steps my advice would be to close everything and re-opened it. 
一旦ログアウトして、再度ログインする方法がいいようです。

+ [Security Specialist SuperBadge: Can't pass Challenge 2](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DcyV0)

+ [Security Superbadge - We couldn't find the Opportunity record owned by Samantha Cordero with the expected Stage](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000Gi88Z)
結局新しいプレイグランドで実施したようです。

**Invalid session**

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/bd1c3ff8-fa9f-2f56-e43c-a525dead9d2c.png)

[Supperbadgeセキュリティスペシャリスト](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000HDHuR)


# step 3

[Apex Testの実行中にセキュリティスペシャリストチャレンジ＃3エラーが発生する](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E0L01)


![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/328136/52ff6301-166d-bdea-486a-81328e9233b0.png)

[I am stuck in Superbadge Security Specialist Challenge 3](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000E9kjM)

+ エラーの詳細情報を確認する方法
[The unit tests in the managed package have not passed successfully. Make sure you run all test in your org before](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000G5LQf)

以下が出ているんだけど、Apexのテストでは　
**System.QueryException: List has no rows for assignment to SObject**

**The unit tests in the managed package have not passed successfully. Make sure you run all test in your org before**

[ここに詳しく解説されています](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000DeDxnSAF)
The APEX error message might be either from your Sharing settings, Role, Profile in Setup.
You need to make sure that all the naming convention are correct too.
For my case, I followed advises from the Expert under this topic thread and play around with the Sharing settings, Role, Profile in Setup.

上記で回答した質問
[I cant pass the Security Specialist Challenge.](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000GgyVVSAZ)

# Step 6

**Challenge Not yet complete... here's what's wrong: The Field Sales User profile does not have the correct permissions for managing List Views, creating and managing reports, or creating and managing report folders.**

そのため、管理者権限を確認して再確認した後、同じエラーが何度も発生していました。

フィールドセールスユーザープロファイル プロファイルを削除する ことにしました。チャレンジを確認して機能した後、以前とまったく同じ権限でプロファイルを再作成しました。

[Superbadge Security Specialist - Challenge# 6](https://trailhead.salesforce.com/ja/trailblazer-community/feed/0D54S00000BtRcF)