You need to sign in to do that
Don't have an account?
Mik Pellicci 7
Salesforce Security Specialist Super badge Step 2
Hi All
Please can you help resolve this issue I am having with Step 2 of the Security Specialist Badge.
Having got to step 2 but cannot get any response other than this after running the Apex test: "Error MessageSystem.QueryException: List has no rows for assignment to SObject" this is not telling me anything just that it hs passed 0/2. I have configuresd the following:
I have tried loging in for each profile and it all seems to work ok including the the Project manager (add Samantha to the group to test)
OWD
Account Public read/Write (Was Public read only) Opportunity (Private) Contacts Default (Controlled by Parent)
User
Samantha Cordero Filed Sales User (profile) Field Sales Role.
Profiles and Roles:
Field Sales User Profile Account (RE) Opportunity (RCE)
Field Sales Role (Users in this role cannot access opportunities that they do not own that are associated with accounts that they do own)
Inside Sales User Profile Account(RCE) Opportunities (RCE)
Inside Sales Role (Users in this role can edit all opportunities associated with accounts that they own, regardless of who owns the opportunities)
Executive Sales User Profile (Account R VA) Opportunity (R VA)
Executive Sales Role(Users in this role can view all opportunities associated with accounts that they own, regardless of who owns the opportunities)
Group
Project Managers
(Criteria based sharing rule below)
Sharing Rules
Thanks in advance for any assistance that can be given
Please can you help resolve this issue I am having with Step 2 of the Security Specialist Badge.
Having got to step 2 but cannot get any response other than this after running the Apex test: "Error MessageSystem.QueryException: List has no rows for assignment to SObject" this is not telling me anything just that it hs passed 0/2. I have configuresd the following:
I have tried loging in for each profile and it all seems to work ok including the the Project manager (add Samantha to the group to test)
OWD
Account Public read/Write (Was Public read only) Opportunity (Private) Contacts Default (Controlled by Parent)
User
Samantha Cordero Filed Sales User (profile) Field Sales Role.
Profiles and Roles:
Field Sales User Profile Account (RE) Opportunity (RCE)
Field Sales Role (Users in this role cannot access opportunities that they do not own that are associated with accounts that they do own)
Inside Sales User Profile Account(RCE) Opportunities (RCE)
Inside Sales Role (Users in this role can edit all opportunities associated with accounts that they own, regardless of who owns the opportunities)
Executive Sales User Profile (Account R VA) Opportunity (R VA)
Executive Sales Role(Users in this role can view all opportunities associated with accounts that they own, regardless of who owns the opportunities)
Group
Project Managers
(Criteria based sharing rule below)
Sharing Rules
Thanks in advance for any assistance that can be given
Here is a link that could help solve the error you are getting. I see that the sharing rule that you set between the 'field sales users' and 'All Internal users' is one of the sources of the error. Check the link, and if it does not solve your problem, let me know.
Have a good one.
https://developer.salesforce.com/forums/?id=906F0000000kEGAIA2
System.QueryException: List has no rows for assignment to SObject
Here is what I passed the challenge with. If what you did differs from these screenshots, try it that way and let me know. When you check the challenge, open your developer console and go to test to see the result of the challenge. You should see a more meaningful error message that coud be helpful.
The Public groups:
can anyone please point me in the correct direction.
Thanks :)
To be able to tell where you did wrong, you need to post a screenshot of what you did up to now, and I will gladly take a look to see what is the problem. Take care.