web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cannot close a task

(0) ShareShare
ReportReport
Posted on by

Hello ,

Please I have the following error when trying to close a task with cancelled option ,but it's working with the completed option.

this is my trace :

Error: Invalid activity state: Cancelled

Error Message: Invalid activity state: Cancelled

Source File: Not available

Line Number: Not available

Request URL:

Stack Trace Info: [ArgumentException: Invalid activity state: Cancelled]
à Microsoft.Crm.Common.Application.Platform.ActivityBase.SetDisabled()
à Microsoft.Crm.Application.Platform.EntityProxy.SetEntityDisabledStatus()
à Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Guid auditingTransactionId, Boolean addRequiredColumns)
à Microsoft.Crm.Application.Platform.EntityProxy.Retrieve(String[] columns, Boolean addRequiredColumns)
à Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.RetrieveEntity(Guid entityId, String entityName, String[] entityColumns)
à Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.RetrieveEntity(String[] columns)
à Microsoft.Crm.Core.Application.WebServices.InlineEdit.RetrieveCommand.ExecuteCommand(String commandXml)
à Microsoft.Crm.Core.Application.WebServices.InlineEdit.CommandBase.Execute(String commandXml)
à Microsoft.Crm.Core.Application.WebServices.InlineEditWebService.Execute(Int32 command, String commandXml)


[2017-12-06 16:09:35.106] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | FaultHelper.ConvertToFault ilOffset = 0x0
>TryConvertToFaultExceptionInternal: exception: System.ArgumentException
[2017-12-06 16:09:35.106] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.TryConvertToFaultExceptionInternal ilOffset = 0x2D
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
>>>>>> EXCEPTION: 0
>Type: System.ArgumentException
>Message (33): Invalid activity state: Cancelled
>StackTrace: present: EC929314
>no PluginTrace
>InnerException <null>
><<<<< EXCEPTION: 0
>
[2017-12-06 16:09:35.106] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ConvertToFault ilOffset = 0x1C
>NestingDepth: 24
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ConvertToFault ilOffset = 0x54
>ToSingleFaultUntyped: enter
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFault ilOffset = 0x0
>ToSingleFault/FE<OSF>: enter
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultUnTyped ilOffset = 0x38
>ToSingleFaultOther: enter
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x21
>enter: ConvertMessageAndErrorCode: System.ArgumentException: Invalid activity state: Cancelled
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x21
>found exception conversion parameters
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x21
>exit: ConvertMessageAndErrorCode: errorCode: 0x80040216; message: System.ArgumentException: Invalid activity state: Cancelled
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2B
>ToSingleFaultCommon: enter
[2017-12-06 16:09:35.107] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2B
>no PluginTrace
[2017-12-06 16:09:35.108] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultOther ilOffset = 0x2B
>no CrmExceptionFaults
[2017-12-06 16:09:35.108] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.ToSingleFaultCommon ilOffset = 0x183
>IncludeCallStack: False
[2017-12-06 16:09:35.108] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | FaultHelper.ConvertToFault ilOffset = 0x0
>TryConvertToFaultExceptionInternal: new FE<OSF>
[2017-12-06 16:09:35.108] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread: 19 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Info |ReqId: 5eb612da-dba1-453a-bb9e-9599460bdfa5 | ExceptionConverter.TryConvertToFaultExceptionInternal ilOffset = 0xDA
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: after) -----
>>>>>> EXCEPTION: 0
>Type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.BaseServiceFault]
>Message (59): System.ArgumentException: Invalid activity state: Cancelled
>StackTrace <null>
>no PluginTrace
>>>>>> FAULT: 0
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (59): System.ArgumentException: Invalid activity state: Cancelled
>Timestamp: present
>TraceText <null>
>CallStack <null>
>InnerFault <null>
><<<<< FAULT: 0
>InnerException <null>
><<<<< EXCEPTION: 0

Kind Regards,

David

*This post is locked for comments

I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans