You need to sign in to do that
Don't have an account?

Not able to insert data in AccountShare object
Hi,
I know this question is a straight forward but still if anybody has any clue then please let us know.
We are trying to insert data in AccountShare table and are facing problem. While trying to insert data in AccountAccessLevel field, API is throwing the following error message:
Message: Account Access: bad value for restricted picklist field: Read Only\nStatus Code:INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST\nFields: System.String[]\nID: \n\n
We are trying to insert value which reads as "Read Only" without double quotes.
We checked the field properties and found that it is restricted picklist and filterable. Is there any way we can insert data in this field or leave it blank.
Thanks in advance.
Regards,
Manas.
Message Code
: WRT_8164Message
: Error loading into target [AccountShare] : Error received from salesforce.com. Fields [AccountAccessLevel, OpportunityAccessLevel, CaseAccessLevel]. Status code [INVALID_ACCESS_LEVEL]. Message [: AccountAccessLevel, OpportunityAccessLevel, CaseAccessLevel (Account, Opportunity, Case Levels, Con Levels (Edit, Read, None, Edit) are below organization levels (None, None, None, ControlledByParent))].Message Code
: CMN_1053Message
: : Rowdata: ( RowType=1(update) Src Rowid=1 Targ Rowid=1Id (Id:Char.18:): "00r5000000yNeaEAAS"
AccountAccessLevel (AccountAccessLevel:Char.40:): "Edit"
OpportunityAccessLevel (OpportunityAccessLevel:Char.40:): "Read"
CaseAccessLevel (CaseAccessLevel:Char.40:): "None"
)
Hi,
Have you got any workaround / root cause for this problem? I am also getting same error and looking for workaround.
Thanks in advance.
V.R.
CaseShare testcaseshare = new CaseShare(UserOrGroupId = curuserID,CaseId = testcase.id,CaseAccessLevel = 'manual');
Sorry, it isn't working at all. All my test where coverd, but when I tried it again, I got an error again :-(
Why isn't it working?
I also tried with value 'Read'