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)

Report
All responses (
Answers (