Tags

, , ,

Hello Everyone,

While testing a Case scenario in my newly created Organization, I faced an Error while saving a new Case.

 

Downloading the log file gave me the error description as below.

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: ec5482b9-8251-e211-be15-1cc1de6e4bb7, OwnerId: d7bb5d01-d949-e211-a139-1cc1de6e6bae, OwnerIdType: 8 and CallingUser: f748023f-5d44-e211-a139-1cc1de6e6bae. ObjectTypeCode: 1, objectBusinessUnitId: 726da34b-5546-e211-82b1-f4ce46b50ead, AccessRights: AppendToAccess Detail:
<OrganizationServiceFault xmlns:i=”http://www.w3.org/2001/XMLSchema-instance&#8221; xmlns=”http://schemas.microsoft.com/xrm/2011/Contracts”&gt;
<ErrorCode>-2147187962</ErrorCode>
<ErrorDetails xmlns:d2p1=”http://schemas.datacontract.org/2004/07/System.Collections.Generic&#8221; />
<Message>SecLib::AccessCheckEx failed. Returned hr = -2147187962, ObjectID: ec5482b9-8251-e211-be15-1cc1de6e4bb7, OwnerId: d7bb5d01-d949-e211-a139-1cc1de6e6bae, OwnerIdType: 8 and CallingUser: f748023f-5d44-e211-a139-1cc1de6e6bae. ObjectTypeCode: 1, objectBusinessUnitId: 726da34b-5546-e211-82b1-f4ce46b50ead, AccessRights: AppendToAccess </Message>
<Timestamp>2013-01-28T16:04:53.0425721Z</Timestamp>
<InnerFault i:nil=”true” />
<TraceText i:nil=”true” />
</OrganizationServiceFault>

In the error description file I came to know from “ObjectTypeCode: 1” about the entity which was causing the accessRights issue with AppendToAccess.

In my case it was Account entity.

Entity can easily figured out with the ObjectTypeCode from the following query in SQL within the current Organization Db(In case if it is a custom Entity):-

SELECT * from EntityView

ORDER BY ObjectTypeCode

Actually in my scenarion, while creating a test instance, the Accounts were imported at the Organization Level and the respective person was given role for appendTo at Account at the User level,
which restricted him to create any case which had the account from organization level.

After modifying the role of AppendTo for Account at Organization level made it work.

To know more about Append & Append To, kindly follow my next blog where i’m sharing two other blogs explaining it very descriptively.

Thanks,

🙂

Advertisements