You need to sign in to do that
Don't have an account?
Somnath Lokesh
The sharing rule did not behave as expected.... TrailHead Challenge
Working on TrailHead Challenge... (https://developer.salesforce.com/trailhead/force_com_introduction/data_security/data_security_sharing_rules)
Tasks completed:
The custom object must be named 'Project' with a resulting API name of 'Project__c'. Done
The Name field for 'Project' must be of type Text (not Auto-Number). Done
The custom object 'Project' must have a custom field of type picklist named 'Priority' with a resulting API name of 'Priority__c'. Done
The role label should be 'Training Coordinator' with the resulting 'Role Name' of 'Training_Coordinator'. Note that you may already have this role in your role hierarchy from a previously attempted challenge. Done
Set the organization wide settings to public read only. Done
Here is where I think is the problem:
The sharing rule can be named anything.
Create sharing rule under "Sharing Settings" under Project Sharing Rules.. Create a criteria based project sharing rule with Priority custom field equal to High. Shared with role "Training Coordinator" as read-only access.
What am I missing?
Tasks completed:
The custom object must be named 'Project' with a resulting API name of 'Project__c'. Done
The Name field for 'Project' must be of type Text (not Auto-Number). Done
The custom object 'Project' must have a custom field of type picklist named 'Priority' with a resulting API name of 'Priority__c'. Done
The role label should be 'Training Coordinator' with the resulting 'Role Name' of 'Training_Coordinator'. Note that you may already have this role in your role hierarchy from a previously attempted challenge. Done
Set the organization wide settings to public read only. Done
Here is where I think is the problem:
The sharing rule can be named anything.
Create sharing rule under "Sharing Settings" under Project Sharing Rules.. Create a criteria based project sharing rule with Priority custom field equal to High. Shared with role "Training Coordinator" as read-only access.
What am I missing?
All Answers
Thanks for the clarification. So, I remove access to Public Read in the OWD. I'll give this a try and get back to you.
Thanks,
Somnath
As far as the below criteria do I have to create a role for this or a public group?
The role label should be 'Training Coordinator' with the resulting 'Role Name' of 'Training_Coordinator'. Note that you may already have this role in your role hierarchy from a previously attempted challenge.
I see in Somnath's earlier screen shot that under the project sharing rule it was Shared with "Role Training Coordinator" just wanted to know how and where that was created. Thanx in advance.
@gary - I have not yet, I moved onto other modules to keep moving forward. Will eventually get back to it and if I get it figured out will keep you posted.
I had the same problem I solved it with the following:
- I had another custom field which was effecting my share settings (deleted this)
- I changed my Field Accessibility on Priority for all users and profiles to unselected except for the System Administrator
I noticed that two profiles where interacting with my Project object and changing the visability.Hope this helps.
Im getting the same error and it has been 2 days trying and i could not find what im missing.
Here follows some prints:
Thanks in advance,
Default Internal Access to Private in Organization-Wide Sharing Defaults Edit
My share rule was not anything wrong but not enough space for creating any records. After deleting all records and files, Challenge was completed.
Please check company Information - Used Data Space and Used File Space.
Gueorgui Iskrov
Hello All!Who have The sharing rule did not behave as expected.... Please check
Default Internal Access to Private in Organization-Wide Sharing Defaults Edit
[/quote]
Written out a little different:
- Go to 'Setup' then 'Administrator -> Security Controls -> Sharing Settings
- Click 'Edit'
- Select your 'Project' custom object and change the drop down for 'Default Internal Access' to 'Private'
Additionally I had a 'Project' custom object from a previous module and even though it was labeled correctly I had to delete it completly for whatever reason to get it to regonize it.The test instructions on this particular module where not very clear.
@Vinicius Francisco
As I can see from your first screenshot you have set the default internal and external access to Public read only, where is it must be private. Plus select the checkbox for default access ussing hierarcies. I thnik this must solve your issue. I was geeting the same error but then it was resolved when I did this:
@Rajat Vijaywargiya
You have given the wrong criteria. Refer the screenshot.
The sharing rule did not behave as expected.... TrailHead Challenge
To solve this problem, the only thing I had to do was change the access of the OWD (Organization-Wide Defaults) to private mode.
I hope this comment can be helpful.
I too am having this error. I read through the posts here and I don't know what I am missing.
I have the same problem:
Do you have any solutions about this ?
Regard
- OWD is set to Private
- I have tried 'share with' roles and subordinates as well as role.
Can anyone suggest anything else?Regards
Yes Erina.
"So you have your 'Share With' roles selected as just 'role', right?" Training Coordinator ONLY.
Jack,
Try make it happen with ANOTHER ORG, it will work.
yi zhang 43
I changed "share with" from role and subordinates : Training Coordinator to Role: Training Coordinator , then it works.
THANKS!
If you have done all the other steps accurately, this could be your potential blocker. The last line in the Data Security>Data Sharing Rules Trailhead makes you think that the Default Internal Access for the Project object should be Read Only. This will cause validation of the Challenge to return the error: The sharing rule did not behave as expected.
This was the solution that worked for me:
Sharing Settings > Organizational-Wide Defaults and set the Default Internal Access for the 'Project' object to Private and not Read Only.
There was a piece in this unit that seemed off to me. In #5, it says, select SW Dev Manager, Director Product Management, and Director QA: However, I don't have the SW Dev Manager, Director Product Management, and Director QA roles available: Was I supposed to add those rules in a different unit and missed it? Is this why I'm getting the error??
I'm having similar issues. Screen shots below - can anyone help?
I was using the same "play ground" since I started and was jumping arounf units so a prior exercise must of conflicted with this challenge.
Can anyone please help me out?
I have set the org wide settings to default and set the criteria as mentioned in the trail. But still having the issue. But on my sharing settings page it says the profile overrides. Below is the screen shot. Is that the reason I am unable to finish the trail?
Can anyone please help me out? Below is the screen shot for better understanding: