Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

HexErrorCode: 0x80040315

(0) ShareShare
ReportReport
Posted on by 5

Made a new model driven app but getting this error below when trying to create an automatic email that is linked to a record of an entity. 

Exception Message: this action is not supported

ErrorCode: -2147220715
HexErrorCode: 0x80040315
Error Details: {"errorCode":2147746581,"message":"this action is not supported.","code":2147746581,"title":"not supported","raw":"{\"_errorCode\":2147746581,\"_errorFault\":{\"_responseXml\":null,\"_errorCode\":2147746581,\"_innerFault\":{\"_responseXml\":null,\"_errorCode\":0,\"_innerFault\":null,\"_callStack\":null,\"_responseText\":null,\"_annotations\":null,\"_messages\":[\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\"]},\"_callStack\":null,\"_responseText\":\"{\\\"error\\\":{\\\"code\\\":\\\"0x80040315\\\",\\\"message\\\":\\\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\\\",\\\"@Microsoft.PowerApps.CDS.HelpLink\\\":\\\""@Microsoft.PowerApps.CDS.TraceText\\\":\\\"\\\\r\\\\n[CCP.ProcessEngine.Plugins:">go.microsoft.com/.../ CCP.ProcessEngine.Plugins.TriggerBusinessProcess]\\\\r\\\\n[5581fc13-2e8a-e611-80db-0050569270d7: CCP.ProcessEngine.Plugins.TriggerBusinessProcess: SetStateDynamicEntity of task]\\\\r\\\\n\\\\r\\\\n\\\",\\\"@Microsoft.PowerApps.CDS.InnerError.Message\\\":\\\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\\\"}}\",\"_annotations\":{\"@Microsoft.PowerApps.CDS.HelpLink\":\""@Microsoft.PowerApps.CDS.TraceText\":\"\\r\\n[CCP.ProcessEngine.Plugins:">go.microsoft.com/.../ CCP.ProcessEngine.Plugins.TriggerBusinessProcess]\\r\\n[5581fc13-2e8a-e611-80db-0050569270d7: CCP.ProcessEngine.Plugins.TriggerBusinessProcess: SetStateDynamicEntity of task]\\r\\n\\r\\n\",\"@Microsoft.PowerApps.CDS.InnerError.Message\":\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\"},\"_messages\":[\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\"]},\"_message\":\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\",\"_exception\":null,\"_innerError\":null,\"_errorSource\":3,\"_blockErrorReporting\":false,\"_stack\":null,\"_faultedRequestIndex\":-1,\"_clientRequestId\":\"d0e3dc93-49ce-4143-8d56-c336f2a085f1\",\"_serverResponseId\":\"49805fdd-1db1-444c-b8bc-c6a913fcc6d5, cf625cad-f8c8-4a25-88ce-d4089685fae2\",\"_httpStatusCode\":405,\"_retryAfter\":null,\"_date\":\"2023-03-23T10:10:18.000Z\",\"_isRequestTooLong\":false,\"message\":\"ccp_generatedocument_bra_brandveiligheidsattest#2011/Organization.svc\",\"name\":\"Error\",\"stack\":\"No stack available.\",\"__action\":{\"source\":{\"actionType\":\"modernDataSource.execute.odata.async\",\"actionStack\":\"modernDataSource.execute.odata.async\",\"contextId\":\"fc7af0b3-c2af-4abd-bfca-98343ad54223\"},\"child\":{\"actionType\":\"oData.update.async\",\"actionStack\":\"oData.update.async\",\"contextId\":\"18d5a487-1db9-4193-85df-c6e15fe01034\"}}}"}

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at
    RE: HexErrorCode: 0x80040315

    It seems to come from a status transition error.

    Are you trying to change the statuscode / statecode of the task while sending the mail?

    Does the status code exist in the entity you are modifying? Do you try to close the task twice?

  • Elien Stevens Profile Picture
    5 on at
    RE: HexErrorCode: 0x80040315

    I'm trying to close an activity (task) after which the message shows. After this task the system should create an e-mail and send it. When I delete the step of the e-mail the problem is gone but I don't want users to manually create an e-mail.

  • Elien Stevens Profile Picture
    5 on at
    RE: HexErrorCode: 0x80040315

    Plugin is working fine in another model driven app

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: HexErrorCode: 0x80040315

    Hello,

    It seems that you have plugins that do not work the proper way and the name of it CCP.ProcessEngine.Plugins.TriggerBusinessProcess. Try to disable the operation and check it again. If it is that plugin - you will have to troubleshoot the plugin, find and fix the issue to enable your full scenario.

    Good luck.

  • XM-22040801-0 Profile Picture
    11 on at
    RE: HexErrorCode: 0x80040315

    Can you share the associated source code or the steps to reproduce this bug?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans