Hi I am trying to import data to work order entity and getting error "Incident type is required" for all items in the excel.
I did enter default incident type and still it is giving error. error is below and could you help me how we can disable the incident type
requirement. Any help is much appreciated.
.
[2019-06-03 14:26:46.785] Process:CrmAsyncService |Organization:c5cad4da-a4b0-4304-8bea-cbefe24b5f06 |Thread: 7 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d6458af5-8da0-45f6-a817-e044e5539e0b | MessageProcessor.Execute ilOffset = 0x22A
>MessageProcessor fail to process message 'Create' for 'msdyn_workorder'.
[2019-06-03 14:26:46.785] Process:CrmAsyncService |Organization:c5cad4da-a4b0-4304-8bea-cbefe24b5f06 |Thread: 7 |Category: Platform.Sdk |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d6458af5-8da0-45f6-a817-e044e5539e0b | VersionedPluginProxyStepBase.Execute ilOffset = 0x64
>Web Service Plug-in failed in SdkMessageProcessingStepId: {14EF15C1-782E-E911-8103-005056944816}; EntityName: msdyn_workorder; Stage: 30; MessageName: Create; AssemblyName: Microsoft.Crm.Extensibility.InternalOperationPlugin, Microsoft.Crm.ObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35; ClassName: Microsoft.Crm.Extensibility.InternalOperationPlugin; Exception: Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An incident type is required.
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.Execute(PipelineExecutionContext pluginContext)
at Microsoft.Crm.Extensibility.ExtensiblePlatformMessageDispatcher.CreateWithInvocationSource(BusinessEntity entity, Int32 invocationSource, ExecutionContext context)
at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Create(IBusinessEntity entity, ExecutionContext context, Boolean createWithPipeline)
Inner Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An incident type is required.
at FieldOne.PluginCommon.FosPluginBase.HandleException(Exception ex)
at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider)
at Microsoft.Dynamics.FieldService.FieldServicePlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
Inner Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An incident type is required.
Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>d6458af5-8da0-45f6-a817-e044e5539e0b</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>OperationStatus</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">0</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>SubErrorCode</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">-2146233088</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>An incident type is required.
</Message>
<Timestamp>2019-06-03T04:26:46.7700867Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault>
<ActivityId>d6458af5-8da0-45f6-a817-e044e5539e0b</ActivityId>
<ErrorCode>-2147220891</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d3p1:key>OperationStatus</d3p1:key>
<d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:int">0</d3p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d3p1:key>SubErrorCode</d3p1:key>
<d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:int">-2146233088</d3p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>An incident type is required.
</Message>
<Timestamp>2019-06-03T04:26:46.7700867Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException i:nil="true" />
<TraceText>
[Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin]
[0c3ea0f9-e395-4901-8665-14b7e823d1b9: Field Service: Create (pre-validate) for msdyn_workorderincident]
FieldServicePlugin: Webresources Returned from server. Count=1
FieldServicePlugin: End:RetrieveXmlWebResourceByName , webresourceSchemaName=msdyn_/LocalizationLibrary/LocalizationXml/localizedString.en_US.xml
FieldServicePlugin: After calling message handler
FieldServicePlugin: PluginLocal.Dispose, Depth: 2
FieldServicePlugin: PluginLocal.Dispose, Depth: 2
FieldServicePlugin:
An incident type is required.
Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An incident type is required.
at FieldOne.PluginCommon.Operation`1.Execute()
at FieldOne.PluginCommon.FosPluginBase.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory)
at Microsoft.Dynamics.FieldService.FieldServicePlugin.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory)
at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider)
FieldServicePlugin: PluginLocal.Dispose, Depth: 2
FieldServicePlugin: PluginLocal.Dispose, Depth: 2
</TraceText>
</OrganizationServiceFault>
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters)
at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)
at Microsoft.Dynamics.FieldService.FieldServicePatchOrganizationService.PatchOrganizationService.Create(Entity entity)
at Microsoft.Dynamics.FieldService.FieldServiceEventSource.LogOrganizationService.Create(Entity entity)
at Microsoft.Dynamics.FieldService.PluginCommon.PluginFlagsOrganizationServiceFactory.Service.Create(Entity entity, String[] flags)
at FieldOne.PluginCommon.IOrganizationServiceExtensions.Create(IOrganizationService service, Entity entity, String[] flags)
at Microsoft.Dynamics.FieldService.Operations.WorkOrderOperation.ChangePrimaryIncident()
at Microsoft.Dynamics.FieldService.Operations.WorkOrderOperation.AfterCreateOrUpdate()
at FieldOne.PluginCommon.EntityOperation`3.HandleMessage(Int32 pluginStage, String messageName)
at FieldOne.PluginCommon.Operation`1.HandleMessage()
at FieldOne.PluginCommon.Operation`1.Execute()
at FieldOne.PluginCommon.FosPluginBase.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory)
at Microsoft.Dynamics.FieldService.FieldServicePlugin.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory)
at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider)
.
[2019-06-03 14:26:46.785] Process:CrmAsyncService |Organization:c5cad4da-a4b0-4304-8bea-cbefe24b5f06 |Thread: 7 |Category: Platform |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d6458af5-8da0-45f6-a817-e044e5539e0b | MessageProcessor.Execute ilOffset = 0x218
>MessageProcessor fail to process message 'Create' for 'msdyn_workorder'.
[2019-06-03 14:26:46.785] Process:CrmAsyncService |Organization:c5cad4da-a4b0-4304-8bea-cbefe24b5f06 |Thread: 7 |Category: Platform.Import |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: 00000000-0000-0000-0000-000000000000 |ActivityId: d6458af5-8da0-45f6-a817-e044e5539e0b | ImportOperationImportFile.SWSCreate ilOffset = 0x208
>Error in Create. ImportDataId {9F25E8BB-B785-E911-812B-005056944816} | Details: