Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Field Service forum / Work Order Data import...
Field Service forum

Work Order Data import failed Incident type required

Posted on by Microsoft Employee

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:

Categories:
  • Suggested answer
    moko33 Profile Picture
    moko33 1,784 on at
    RE: Work Order Data import failed Incident type required

    I just tried to import Work Orders with and without Incident Type.

    Both, fresh import and update of existing Work Orders.

    Also associate an existing Primary Incident to a Work Order.

    Had no issues. Using FS 8.8.5.10.

  • Andrew Nevitt Profile Picture
    Andrew Nevitt 10 on at
    RE: Work Order Data import failed Incident type required

    Hi Likki, Did you reach a resolution for this issue? I have encountered the same issue on FS version 8.8. I have Primary Incident Type populated in the Excel source file and re-importing Work Orders complains that Incident Type is required. Thanks!

  • Fannie30 Profile Picture
    Fannie30 2,990 on at
    RE: Work Order Data import failed Incident type required

    Is the error still the same?  Are you able to upload a row from your import to this thread (without any customer sensitive data) for review?  Which version of FS are you on?  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Work Order Data import failed Incident type required

    Tried those and still no luck. giving error even though the columns have data accurately.

  • Suggested answer
    moko33 Profile Picture
    moko33 1,784 on at
    RE: Work Order Data import failed Incident type required

    Check if the Work Order Type you are you using has the attribute Incident Required set to Yes.

    Also, do you try to import data into the field Primary Incident Customer Asset or Primary Incident Estimated Duration? That would require an Incident Type as well.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans