Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow not firing on creation of an entity

Posted on by Microsoft Employee

Hi,

I have a workflow (background) that is supposed to trigger on "Create" of a custom entity. The workflow initially had 2 steps, a check condition and a "send email message". I have changed it to only one step while trying to eliminate the cause of this error, the error message appears in the trace log only.

Error Message: Microsoft.Crm.CrmArgumentException: Invalid data ---> System.ArgumentException: Invalid data

Below is a snip of the actual workflow:

2068.Capture.PNG

Note: that no errors are generated from the workflow and no "Process sessions" added. From the interface it appears as if the workflow has never triggered.

Trace Log:

Process:CrmAsyncService |Organization:1513891c-2760-e711-80f4-005056bc336c |Thread: 20 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: ee1e5855-5d5a-458c-8d28-f37037cc256d | AsyncEventHandlerCommand`1.Execute ilOffset = 0xD7
>Exception while trying to execute AsyncOperationId: {34F7A5E2-8DBF-E811-8112-005056BC336C} AsyncOperationType: 1 - Microsoft.Crm.CrmArgumentException: Invalid data ---> System.ArgumentException: Invalid data
--- End of inner exception stack trace ---
at Microsoft.Crm.Asynchronous.AsyncExecutionContext.DeserializeAsyncData(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.EventOperation.InternalExecute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)
[2018-09-24 12:14:42.754] Process:CrmAsyncService |Organization:1513891c-2760-e711-80f4-005056bc336c |Thread: 20 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d2177974-61ac-4db3-97a1-eb7f046d16ec | AsyncExecutionContext.DeserializeAsyncData ilOffset = 0x4C
>Invalid data found for operation type: 1, data: <?xml version="1.0" encoding="utf-16"?><AsyncOperationData xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.datacontract.org/.../Microsoft.Crm"><CallerOrigin xmlns:d2p1="schemas.datacontract.org/.../Microsoft.Crm.Sdk" i:type="d2p1:WebServiceApiOrigin" /><InitiatingUserId>9856dfcc-1786-e711-80f7-005056bc336c</InitiatingUserId><InputParameters xmlns:d2p1="schemas.microsoft.com/.../Contracts" xmlns:d2p2="schemas.datacontract.org/.../System.Collections.Generic"><d2p1:KeyValuePairOfstringanyType><d2p2:key>Target</d2p2:key><d2p2:value i:type="d2p1:Entity"><d2p1:Attributes><d2p1:KeyValuePairOfstringanyType><d2p2:key>fma_recomendationmemo</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">Rationale: </d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>activityid</d2p2:key><d2p2:value xmlns:d7p1="schemas.microsoft.com/.../Serialization" i:type="d7p1:guid">dc008bd5-8ebf-e811-8112-005056bc336c</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>owningbusinessunit</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>9e073f5e-bde8-e611-812d-005056ab5692</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>businessunit</d2p1:LogicalName><d2p1:Name i:nil="true" /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>modifiedon</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:dateTime">2018-09-24T00:14:43Z</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>modifiedonbehalfby</d2p2:key><d2p2:value i:nil="true" /></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>fma_approvaltype</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>173220011</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>statecode</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>0</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>statuscode</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>1</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>fma_assessment</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>59517625-cab7-e811-8112-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>fma_casedetailsprocess</d2p1:LogicalName><d2p1:Name>Assessment - CAS-40034-D9X6R3</d2p1:Name><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>createdby</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>9856dfcc-1786-e711-80f7-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>systemuser</d2p1:LogicalName><d2p1:Name i:nil="true" /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>regardingobjectid</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>b687a62b-c9b7-e811-8112-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>incident</d2p1:LogicalName><d2p1:Name>Approval Test</d2p1:Name><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>isworkflowcreated</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">false</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>activitytypecode</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">fma_approvalrequest</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>isbilled</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">false</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>deliveryprioritycode</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>1</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>ownerid</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>f806ef1d-ebdd-e611-9eba-005056bc4da1</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>systemuser</d2p1:LogicalName><d2p1:Name i:nil="true" /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>isregularactivity</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">true</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>modifiedby</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>9856dfcc-1786-e711-80f7-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d8p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>systemuser</d2p1:LogicalName><d2p1:Name i:nil="true" /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>ismapiprivate</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">false</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>leftvoicemail</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:boolean">false</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>prioritycode</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>1</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>createdon</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:dateTime">2018-09-24T00:14:43Z</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>instancetypecode</d2p2:key><d2p2:value i:type="d2p1:OptionSetValue"><d2p1:Value>0</d2p1:Value></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>organizer</d2p2:key><d2p2:value i:type="d2p1:EntityCollection"><d2p1:Entities><d2p1:Entity xmlns:d9p1="FMA.Common" i:type="d9p1:ActivityParty"><d2p1:Attributes><d2p1:KeyValuePairOfstringanyType><d2p2:key>partyid</d2p2:key><d2p2:value i:type="d2p1:EntityReference"><d2p1:Id>9856dfcc-1786-e711-80f7-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d13p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>systemuser</d2p1:LogicalName><d2p1:Name i:nil="true" /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType></d2p1:Attributes><d2p1:EntityState i:nil="true" /><d2p1:FormattedValues /><d2p1:Id>00000000-0000-0000-0000-000000000000</d2p1:Id><d2p1:KeyAttributes xmlns:d10p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>activityparty</d2p1:LogicalName><d2p1:RelatedEntities /><d2p1:RowVersion i:nil="true" /></d2p1:Entity></d2p1:Entities><d2p1:EntityName i:nil="true" /><d2p1:MinActiveRowVersion i:nil="true" /><d2p1:MoreRecords>false</d2p1:MoreRecords><d2p1:PagingCookie i:nil="true" /><d2p1:TotalRecordCount>0</d2p1:TotalRecordCount><d2p1:TotalRecordCountLimitExceeded>false</d2p1:TotalRecordCountLimitExceeded></d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>subject</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">Initial Assessment - Approval Test</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>description</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">Decision:
Decision Date:
Decision Maker:

Recommendation Memo: Rationale: </d2p2:value></d2p1:KeyValuePairOfstringanyType></d2p1:Attributes><d2p1:EntityState>Created</d2p1:EntityState><d2p1:FormattedValues><d2p1:KeyValuePairOfstringstring><d2p2:key>modifiedon</d2p2:key><d2p2:value>2018-09-24T12:14:43+12:00</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>fma_approvaltype</d2p2:key><d2p2:value>Initial Assessment</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>statecode</d2p2:key><d2p2:value>Open</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>statuscode</d2p2:key><d2p2:value>Open</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>isworkflowcreated</d2p2:key><d2p2:value>No</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>activitytypecode</d2p2:key><d2p2:value>Approval Request</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>isbilled</d2p2:key><d2p2:value>No</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>deliveryprioritycode</d2p2:key><d2p2:value>Normal</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>isregularactivity</d2p2:key><d2p2:value>Yes</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>ismapiprivate</d2p2:key><d2p2:value>No</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>leftvoicemail</d2p2:key><d2p2:value>No</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>prioritycode</d2p2:key><d2p2:value>Normal</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>createdon</d2p2:key><d2p2:value>2018-09-24T12:14:43+12:00</d2p2:value></d2p1:KeyValuePairOfstringstring><d2p1:KeyValuePairOfstringstring><d2p2:key>instancetypecode</d2p2:key><d2p2:value>Not Recurring</d2p2:value></d2p1:KeyValuePairOfstringstring></d2p1:FormattedValues><d2p1:Id>dc008bd5-8ebf-e811-8112-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d5p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>fma_approvalrequest</d2p1:LogicalName><d2p1:RelatedEntities /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringanyType></InputParameters><InvocationSource>1</InvocationSource><OutputParameters xmlns:d2p1="schemas.microsoft.com/.../Contracts" xmlns:d2p2="schemas.datacontract.org/.../System.Collections.Generic"><d2p1:KeyValuePairOfstringanyType><d2p2:key>id</d2p2:key><d2p2:value xmlns:d4p1="schemas.microsoft.com/.../Serialization" i:type="d4p1:guid">dc008bd5-8ebf-e811-8112-005056bc336c</d2p2:value></d2p1:KeyValuePairOfstringanyType></OutputParameters><ParentContext><CallerOrigin xmlns:d3p1="schemas.datacontract.org/.../Microsoft.Crm.Sdk" i:type="d3p1:WebServiceApiOrigin" /><InitiatingUserId>9856dfcc-1786-e711-80f7-005056bc336c</InitiatingUserId><InputParameters xmlns:d3p1="schemas.microsoft.com/.../Contracts" xmlns:d3p2="schemas.datacontract.org/.../System.Collections.Generic"><d3p1:KeyValuePairOfstringanyType><d3p2:key>Target</d3p2:key><d3p2:value i:type="d3p1:Entity"><d3p1:Attributes><d3p1:KeyValuePairOfstringanyType><d3p2:key>ownerid</d3p2:key><d3p2:value i:type="d3p1:EntityReference"><d3p1:Id>f806ef1d-ebdd-e611-9eba-005056bc4da1</d3p1:Id><d3p1:KeyAttributes xmlns:d9p1="schemas.microsoft.com/.../Contracts" /><d3p1:LogicalName>systemuser</d3p1:LogicalName><d3p1:Name i:nil="true" /><d3p1:RowVersion i:nil="true" /></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>fma_assessment</d3p2:key><d3p2:value i:type="d3p1:EntityReference"><d3p1:Id>59517625-cab7-e811-8112-005056bc336c</d3p1:Id><d3p1:KeyAttributes xmlns:d9p1="schemas.microsoft.com/.../Contracts" /><d3p1:LogicalName>fma_casedetailsprocess</d3p1:LogicalName><d3p1:Name i:nil="true" /><d3p1:RowVersion i:nil="true" /></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>regardingobjectid</d3p2:key><d3p2:value i:type="d3p1:EntityReference"><d3p1:Id>b687a62b-c9b7-e811-8112-005056bc336c</d3p1:Id><d3p1:KeyAttributes xmlns:d9p1="schemas.microsoft.com/.../Contracts" /><d3p1:LogicalName>incident</d3p1:LogicalName><d3p1:Name i:nil="true" /><d3p1:RowVersion i:nil="true" /></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>fma_approvaltype</d3p2:key><d3p2:value i:type="d3p1:OptionSetValue"><d3p1:Value>173220011</d3p1:Value></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>fma_recomendationmemo</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:string"></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>isbilled</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:boolean">false</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>instancetypecode</d3p2:key><d3p2:value i:type="d3p1:OptionSetValue"><d3p1:Value>0</d3p1:Value></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>isworkflowcreated</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:boolean">false</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>prioritycode</d3p2:key><d3p2:value i:type="d3p1:OptionSetValue"><d3p1:Value>1</d3p1:Value></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>deliveryprioritycode</d3p2:key><d3p2:value i:type="d3p1:OptionSetValue"><d3p1:Value>1</d3p1:Value></d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>ismapiprivate</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:boolean">false</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>leftvoicemail</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:boolean">false</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>isregularactivity</d3p2:key><d3p2:value xmlns:d8p1="www.w3.org/.../XMLSchema" i:type="d8p1:boolean">true</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>activityid</d3p2:key><d3p2:value xmlns:d8p1="schemas.microsoft.com/.../Serialization" i:type="d8p1:guid">dc008bd5-8ebf-e811-8112-005056bc336c</d3p2:value></d3p1:KeyValuePairOfstringanyType></d3p1:Attributes><d3p1:EntityState>Created</d3p1:EntityState><d3p1:FormattedValues /><d3p1:Id>dc008bd5-8ebf-e811-8112-005056bc336c</d3p1:Id><d3p1:KeyAttributes xmlns:d6p1="schemas.microsoft.com/.../Contracts" /><d3p1:LogicalName>fma_approvalrequest</d3p1:LogicalName><d3p1:RelatedEntities /><d3p1:RowVersion i:nil="true" /></d3p2:value></d3p1:KeyValuePairOfstringanyType></InputParameters><InvocationSource>0</InvocationSource><OutputParameters xmlns:d3p1="schemas.microsoft.com/.../Contracts" xmlns:d3p2="schemas.datacontract.org/.../System.Collections.Generic" /><ParentContext i:nil="true" /><PostEntityImages xmlns:d3p1="schemas.microsoft.com/.../Contracts" xmlns:d3p2="schemas.datacontract.org/.../System.Collections.Generic" /><PreEntityImages xmlns:d3p1="schemas.microsoft.com/.../Contracts" xmlns:d3p2="schemas.datacontract.org/.../System.Collections.Generic" /><PrimaryEntityName>fma_approvalrequest</PrimaryEntityName><SecondaryEntityName>none</SecondaryEntityName><SharedVariables xmlns:d3p1="schemas.microsoft.com/.../Contracts" xmlns:d3p2="schemas.datacontract.org/.../System.Collections.Generic"><d3p1:KeyValuePairOfstringanyType><d3p2:key>DefaultsAddedFlag</d3p2:key><d3p2:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:boolean">true</d3p2:value></d3p1:KeyValuePairOfstringanyType><d3p1:KeyValuePairOfstringanyType><d3p2:key>ChangedEntityTypes</d3p2:key><d3p2:value xmlns:d5p1="schemas.microsoft.com/.../Arrays" i:type="d5p1:ArrayOfKeyValueOfstringstring"><d5p1:KeyValueOfstringstring><d5p1:Key>activityparty</d5p1:Key><d5p1:Value>Create</d5p1:Value></d5p1:KeyValueOfstringstring></d3p2:value></d3p1:KeyValuePairOfstringanyType></SharedVariables><Stage>30</Stage></ParentContext><PostEntityImages xmlns:d2p1="schemas.microsoft.com/.../Contracts" xmlns:d2p2="schemas.datacontract.org/.../System.Collections.Generic"><d2p1:KeyValuePairOfstringEntitygUGIFE1S><d2p2:key>AsynchronousStepPrimaryName</d2p2:key><d2p2:value><d2p1:Attributes><d2p1:KeyValuePairOfstringanyType><d2p2:key>subject</d2p2:key><d2p2:value xmlns:d7p1="www.w3.org/.../XMLSchema" i:type="d7p1:string">Initial Assessment - Approval Test</d2p2:value></d2p1:KeyValuePairOfstringanyType><d2p1:KeyValuePairOfstringanyType><d2p2:key>activityid</d2p2:key><d2p2:value xmlns:d7p1="schemas.microsoft.com/.../Serialization" i:type="d7p1:guid">dc008bd5-8ebf-e811-8112-005056bc336c</d2p2:value></d2p1:KeyValuePairOfstringanyType></d2p1:Attributes><d2p1:EntityState i:nil="true" /><d2p1:FormattedValues /><d2p1:Id>dc008bd5-8ebf-e811-8112-005056bc336c</d2p1:Id><d2p1:KeyAttributes xmlns:d5p1="schemas.microsoft.com/.../Contracts" /><d2p1:LogicalName>fma_approvalrequest</d2p1:LogicalName><d2p1:RelatedEntities /><d2p1:RowVersion i:nil="true" /></d2p2:value></d2p1:KeyValuePairOfstringEntitygUGIFE1S></PostEntityImages><PreEntityImages xmlns:d2p1="schemas.microsoft.com/.../Contracts" xmlns:d2p2="schemas.datacontract.org/.../System.Collections.Generic" /><PrimaryEntityName>fma_approvalrequest</PrimaryEntityName><SecondaryEntityName>none</SecondaryEntityName><SharedVariables xmlns:d2p1="schemas.microsoft.com/.../Contracts" xmlns:d2p2="schemas.datacontract.org/.../System.Collections.Generic"><d2p1:KeyValuePairOfstringanyType><d2p2:key>DefaultsAddedFlag</d2p2:key><d2p2:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:boolean">true</d2p2:value></d2p1:KeyValuePairOfstringanyType></SharedVariables><Stage>45</Stage></AsyncOperationData>. Exception: System.Runtime.Serialization.SerializationException: Error in line 1 position 6562. Element 'schemas.microsoft.com/.../Contracts:Entity' contains data from a type that maps to the name 'FMA.Common:ActivityParty'. The deserializer has no knowledge of any type that maps to this name. Consider changing the implementation of the ResolveName method on your DataContractResolver to return a non-null value for name 'ActivityParty' and namespace 'FMA.Common'.
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadArrayOfEntityFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadEntityCollectionFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadKeyValuePairOfstringanyTypeFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadAttributeCollectionFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadEntityFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadKeyValuePairOfstringanyTypeFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadParameterCollectionFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString , CollectionDataContract )
at System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
at ReadAsyncOperationDataFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
at System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator reader, String name, String ns, Type declaredType, DataContract& dataContract)
at System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator xmlReader, Type declaredType, DataContract dataContract, String name, String ns)
at System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator xmlReader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)
at Microsoft.Crm.Asynchronous.AsyncExecutionContext.DeserializeAsyncData(AsyncEvent asyncEvent)
[2018-09-24 12:14:42.754] Process:CrmAsyncService |Organization:1513891c-2760-e711-80f4-005056bc336c |Thread: 20 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d2177974-61ac-4db3-97a1-eb7f046d16ec | CrmArgumentException..ctor ilOffset = 0x12
at CrmArgumentException..ctor(String message) ilOffset = 0x12
at AsyncExecutionContext.DeserializeAsyncData(AsyncEvent asyncEvent) ilOffset = 0x4C
at EventOperation.InternalExecute(AsyncEvent asyncEvent) ilOffset = 0x3F
at AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent) ilOffset = 0xD7
at AsyncEventExecutionManager`2.ExecuteCommand(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x95
at AsyncEventExecutionManager`2.ExecuteHandler(IAsyncEventHandlerFactory handlerFactory) ilOffset = 0x63
at PoolHandler.ProcessAsyncEvent(IAsyncEventExecutionManager asyncEventExecutionManager) ilOffset = 0x20A
at AsyncEventOperation.<.ctor>b__2(IServiceOperation operation) ilOffset = 0x0
at FaultToleranceBehavior.Execute(ServiceOperationAction operation, IServiceOperation operationParameter) ilOffset = 0x18
at IsolatedOperation.Execute() ilOffset = 0x27
at MonitoredOperation.Execute() ilOffset = 0xD
at ThreadPoolQueueExecutionEngine.InvokeNextOperationInThreadPool(Object state) ilOffset = 0x16
at ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x79
at ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) ilOffset = 0x9
at QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() ilOffset = 0x35
at ThreadPoolWorkQueue.Dispatch() ilOffset = 0xA4
>Crm Exception: Message: Invalid data, ErrorCode: -2147220989, InnerException: System.ArgumentException: Invalid data
[2018-09-24 12:14:42.754] Process:CrmAsyncService |Organization:1513891c-2760-e711-80f4-005056bc336c |Thread: 20 |Category: Platform.Async |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d2177974-61ac-4db3-97a1-eb7f046d16ec | AsyncEventHandlerCommand`1.Execute ilOffset = 0xD7
>Exception while trying to execute AsyncOperationId: {E1008BD5-8EBF-E811-8112-005056BC336C} AsyncOperationType: 1 - Microsoft.Crm.CrmArgumentException: Invalid data ---> System.ArgumentException: Invalid data
--- End of inner exception stack trace ---
at Microsoft.Crm.Asynchronous.AsyncExecutionContext.DeserializeAsyncData(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.EventOperation.InternalExecute(AsyncEvent asyncEvent)
at Microsoft.Crm.Asynchronous.AsyncEventHandlerCommand`1.Execute(IAsyncEvent asyncEvent)

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow not firing on creation of an entity

    Turns out the problem was with my early bound classes. somehow the entity schema was corrupted and 2 attributes (option sets) were not getting mapped correctly. Updating and re running the crmsvcutil has fixed this issue.

    Thanks All

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow not firing on creation of an entity

    If you use mapping to fill one of fields on entity records It might does not fill it and when your workflow runs it cause exception

    So, you should check mappings in that entity.

  • crm development Profile Picture
    crm development 870 on at
    RE: Workflow not firing on creation of an entity

    Try to restart Asynchronous service. If it still doesn't work then recreate the workflow again.

    Thanks,

    Anand

  • Dynamics365 Rocker Profile Picture
    Dynamics365 Rocker 7,755 on at
    RE: Workflow not firing on creation of an entity

    This workflow is corrupted.

    Please try to create a new workflow and it will work.

  • Daniel Wikell Profile Picture
    Daniel Wikell 2,360 on at
    RE: Workflow not firing on creation of an entity

    The process definitions can in rare cases become corrupt and it could be the case here. Have you tried recreating the process anew?

    If you are interested, you can also export the process and look at the definition in the XAML-file, see if you can spot anything odd.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow not firing on creation of an entity

    Forgot to add, on CRM 8.1.1100 (On Premise)

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