Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Task creation error on Case record

Posted on by 1,075

Hello,

When I try to create a Task on Case record, I am getting the below error msg. I have some plug-in running behind the scene to alert Task owner and Team to be notified by an email. But I am having hard time here to understand what kind of access it is expecting on what object. Can someone help me to through ideas here by looking at this error log? Thanks in advance.

Unhandled Exception:

System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: SecLib::AccessCheckEx2 failed. Returned hr = -2147187962, ObjectId: 00000000-0000-0000-0000-000000000000, OwnerId: 7b3e002f-5de1-e611-80f5-005056b5a813, OwnerIdType: 8 and CallingUser: 751a58b4-f79d-e211-bbb7-005056b245b5, CallerBusinessId: b87adad5-598e-e111-8b9a-005056b245b5. ObjectTypeCode: 4200, ObjectBusinessUnitId: ca76b573-ad9a-e111-9a17-005056b245b5, AccessRights: CreateAccess. Computed rightsToCheck=CreateAccess, grantedRights=8, hsmGrantedRights=None, grantedRightsWithHsm=8.Detail:
<OrganizationServiceFault xmlns:i="">www.w3.org/.../XMLSchema-instance" xmlns="">schemas.microsoft.com/.../Contracts">
<ActivityId>0b354092-af59-4555-9ec3-1b22899148db</ActivityId>
<ErrorCode>-2147187962</ErrorCode>
<ErrorDetails xmlns:d2p1="">schemas.datacontract.org/.../System.Collections.Generic" />
<Message>SecLib::AccessCheckEx2 failed. Returned hr = -2147187962, ObjectId: 00000000-0000-0000-0000-000000000000, OwnerId: 7b3e002f-5de1-e611-80f5-005056b5a813, OwnerIdType: 8 and CallingUser: 751a58b4-f79d-e211-bbb7-005056b245b5, CallerBusinessId: b87adad5-598e-e111-8b9a-005056b245b5. ObjectTypeCode: 4200, ObjectBusinessUnitId: ca76b573-ad9a-e111-9a17-005056b245b5, AccessRights: CreateAccess. Computed rightsToCheck=CreateAccess, grantedRights=8, hsmGrantedRights=None, grantedRightsWithHsm=8.</Message>
<Timestamp>2020-04-21T14:42:28.6083755Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</OrganizationServiceFault>

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Task creation error on Case record

    If my reply helped you take a minute and click "Yes" under "Did this answer your question" to close the thread.

  • Suggested answer
    RE: Task creation error on Case record

    I figured it out. The user trying to create a Task and assign it to an user in different business unit. But Activity create permission is limited to Business Unit level. I extended it to Organization level. It worked.

    Thanks for your time.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Task creation error on Case record

    You can argue, but this is what log says. If you can't disable the plugin - find the person who can. Good luck.

  • RE: Task creation error on Case record

    The user has create permission on Activity. Is it looking for something like plug-in execute access? Not able to disable plug-in as I am not the owner of plug-in.

  • a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Task creation error on Case record

    Hello,

    According to the log you provided user with id 751a58b4-f79d-e211-bbb7-005056b245b5 doesn't have "Create" privileges for "Activity" entity, i.e. any activity.

    Does everything work fine if the plugin you mentioned is disabled?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans