Hi Guys,
Everything was working till yesterday. Today we are not able to create a Work Order with basic details, it is throwing the below error :
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Object reference not set to an instance of an object.Detail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>ee541d36-5418-47d4-abea-e86b2bf4aac8</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:string">0</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>SubErrorCode</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>Object reference not set to an instance of an object.</Message> <Timestamp>2018-02-06T21:27:30.4080414Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText> [Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin] [94f83cac-7732-4bb9-9cff-8f92992dd953: Field Service: Create (post-operation) for msdyn_workorder] FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: PluginContext Start FieldServicePlugin: MessageName: Create FieldServicePlugin: PrimaryEntityName: msdyn_workorder FieldServicePlugin: PrimaryEntityId: 07349988-840b-e811-a958-000d3a10877d FieldServicePlugin: SecondaryEntityName: none FieldServicePlugin: Stage: 40 FieldServicePlugin: PreEntityImages.Count: 0 FieldServicePlugin: PostEntityImages.Count: 0 FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FieldServicePlugin: OutputParameters: id = 07349988-840b-e811-a958-000d3a10877d FieldServicePlugin: SharedVariables: DefaultsAddedFlag = True FieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: IsolationMode: 1 FieldServicePlugin: Mode: 0 FieldServicePlugin: OrganizationName: org0b8e8f49 FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: IsInTransaction: True FieldServicePlugin: Depth: 1 FieldServicePlugin: IsExecutingOffline: False FieldServicePlugin: Parent PluginContext Start FieldServicePlugin: PluginContext Start FieldServicePlugin: MessageName: Create FieldServicePlugin: PrimaryEntityName: msdyn_workorder FieldServicePlugin: PrimaryEntityId: 07349988-840b-e811-a958-000d3a10877d FieldServicePlugin: SecondaryEntityName: none FieldServicePlugin: Stage: 30 FieldServicePlugin: PreEntityImages.Count: 0 FieldServicePlugin: PostEntityImages.Count: 0 FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity SuppressDuplicateDetection = False FieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: DefaultsAddedFlag = True FieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: IsolationMode: 1 FieldServicePlugin: Mode: 0 FieldServicePlugin: OrganizationName: org0b8e8f49 FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: IsInTransaction: True FieldServicePlugin: Depth: 1 FieldServicePlugin: IsExecutingOffline: False FieldServicePlugin: Parent PluginContext Start FieldServicePlugin: PluginContext Start FieldServicePlugin: MessageName: ExecuteTransaction FieldServicePlugin: PrimaryEntityName: none FieldServicePlugin: PrimaryEntityId: 00000000-0000-0000-0000-000000000000 FieldServicePlugin: SecondaryEntityName: none FieldServicePlugin: Stage: 30 FieldServicePlugin: PreEntityImages.Count: 0 FieldServicePlugin: PostEntityImages.Count: 0 FieldServicePlugin: InputParameters: Requests = Microsoft.Xrm.Sdk.OrganizationRequestCollection ReturnResponses = True FieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: ChangedEntityTypes = System.Collections.Generic.Dictionary`2[System.String,System.String] FieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FieldServicePlugin: IsolationMode: 1 FieldServicePlugin: Mode: 0 FieldServicePlugin: OrganizationName: org0b8e8f49 FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FieldServicePlugin: IsInTransaction: True FieldServicePlugin: Depth: 1 FieldServicePlugin: IsExecutingOffline: False FieldServicePlugin: PluginContext End FieldServicePlugin: Parent PluginContext End FieldServicePlugin: PluginContext End FieldServicePlugin: Parent PluginContext End FieldServicePlugin: PluginContext End FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: PluginLocal.Create, Depth: 1 FieldServicePlugin: InitializePlugin: local FieldServicePlugin: ConfigurePluginFlagsSupportInternal() FieldServicePlugin: CreateEntityOperation(msdyn_workorder) FieldServicePlugin: Operation type: WorkOrderOperation FieldServicePlugin: operation.Initialize() FieldServicePlugin: InputEntity: ecl_customerassetsidentified = 1 statecode = 0 msdyn_longitude = -82.58249 statuscode = 1 msdyn_postalcode = 48001 msdyn_workordertype = ab51b225-84ba-e711-a950-000d3a10877d_msdyn_workordertype[] createdon = 2/6/2018 9:27:30 PM msdyn_latitude = 42.62563 msdyn_pricelist = 6f3fb46d-beb8-e711-a94e-000d3a109d70_pricelevel[] msdyn_worklocation = 690970000 transactioncurrencyid = b12a17b1-51b4-e711-a82a-000d3a1be40f_transactioncurrency[] msdyn_primaryincidenttype = a2d7da93-fac3-e711-a961-000d3a192e9a_msdyn_incidenttype[] msdyn_taxable = True ownerid = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] ecl_manageroverride = False modifiedon = 2/6/2018 9:27:30 PM msdyn_stateorprovince = MI stageid = msdyn_address1 = 5200 Taft Rd msdyn_taxcode = 40931035-b9cb-e711-a950-000d3a10877d_msdyn_taxcode[] msdyn_billingaccount = 10a01eb7-5a07-e811-a959-000d3a1087a0_account[] msdyn_serviceterritory = 7d33c488-50c9-e711-a94e-000d3a109d70_territory[] msdyn_workorderid = 07349988-840b-e811-a958-000d3a10877d msdyn_country = United States msdyn_primaryincidentdescription = Air Leak msdyn_isfollowup = False modifiedby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_serviceaccount = 10a01eb7-5a07-e811-a959-000d3a1087a0_account[] ecl_poreceived = 1 modifiedonbehalfby = msdyn_followuprequired = False owningbusinessunit = 75afed5f-49b4-e711-a82a-000d3a1be40f_businessunit[] traversedpath = msdyn_city = Algonac ecl_excludeoshafee = False ecl_allproductsavailable = False createdby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] processid = 00000000-0000-0000-0000-000000000000 msdyn_name = WO-0000192 msdyn_systemstatus = 690970006 msdyn_ismobile = False msdyn_subtotalamount = 0 msdyn_totalsalestax = 0 msdyn_totalamount = 0 msdyn_substatus = msdyn_instructions = msdyn_addressname = msdyn_address2 = msdyn_address3 = exchangerate = 1.0000000000 msdyn_totalamount_base = 0 msdyn_totalsalestax_base = 0 msdyn_subtotalamount_base = 0 FieldServicePlugin: operation.Execute() FieldServicePlugin: PluginStage: 40 MessageName: Create FieldServicePlugin: Before calling message handler FieldServicePlugin: After FieldServicePlugin: AfterCreate FieldServicePlugin: AfterCreateOrUpdate FieldServicePlugin: PluginLocal.Create, Depth: 2 FieldServicePlugin: PluginLocal.Dispose, Depth: 2 FieldServicePlugin: PluginLocal.Dispose, Depth: 1 FieldServicePlugin: PluginLocal.Dispose, Depth: 1 FieldServicePlugin: Object reference not set to an instance of an object. System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Object reference not set to an instance of an object. (Fault Detail is equal to Exception details: ErrorCode: 0x80040265 Message: Object reference not set to an instance of an object.; [Microsoft.Dynamics.Fps: Microsoft.Dynamics.ScheduleCommon.Fps.FpsPlugin] [f64c55bc-7402-4bcb-bf7e-3490ed16b0d4: Microsoft Dynamics Fps: Create (pre-operation) for msdyn_resourcerequirement] FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginContext Start FpsPlugin: MessageName: Create FpsPlugin: PrimaryEntityName: msdyn_resourcerequirement FpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877d FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 20 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = True FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlug...). FieldServicePlugin: PluginLocal.Dispose, Depth: 1 [Microsoft.Dynamics.Fps: Microsoft.Dynamics.ScheduleCommon.Fps.FpsPlugin] [f64c55bc-7402-4bcb-bf7e-3490ed16b0d4: Microsoft Dynamics Fps: Create (pre-operation) for msdyn_resourcerequirement] FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginContext Start FpsPlugin: MessageName: Create FpsPlugin: PrimaryEntityName: msdyn_resourcerequirement FpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877d FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 20 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = True FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: Parent PluginContext Start FpsPlugin: PluginContext Start FpsPlugin: MessageName: Create FpsPlugin: PrimaryEntityName: msdyn_resourcerequirement FpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877d FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 30 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = True FieldServiceContext.ResourceRequirement_DisablePrimaryCheckValidation = True FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: Parent PluginContext Start FpsPlugin: PluginContext Start FpsPlugin: MessageName: ExecuteTransaction FpsPlugin: PrimaryEntityName: none FpsPlugin: PrimaryEntityId: 00000000-0000-0000-0000-000000000000 FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 30 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Requests = Microsoft.Xrm.Sdk.OrganizationRequestCollection ReturnResponses = True FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: ChangedEntityTypes = System.Collections.Generic.Dictionary`2[System.String,System.String] FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: PluginContext End FpsPlugin: Parent PluginContext End FpsPlugin: PluginContext End FpsPlugin: Parent PluginContext End FpsPlugin: PluginContext End FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: InitializePlugin: local FpsPlugin: ConfigurePluginFlagsSupportInternal() FpsPlugin: CreateEntityOperation(msdyn_resourcerequirement) FpsPlugin: Operation type: ResourceRequirementOperation FpsPlugin: operation.Initialize() FpsPlugin: InputEntity: msdyn_isprimary = True owningbusinessunit = 75afed5f-49b4-e711-a82a-000d3a1be40f_businessunit[] msdyn_latitude = 42.62563 modifiedonbehalfby = msdyn_allocationmethod = 192350000 statecode = 0 statuscode = 1 createdby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_longitude = -82.58249 ownerid = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] modifiedon = 2/6/2018 9:27:30 PM msdyn_resourcerequirementid = 0b349988-840b-e811-a958-000d3a10877d owninguser = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] modifiedby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_territory = 7d33c488-50c9-e711-a94e-000d3a109d70_territory[] msdyn_worklocation = 690970000 createdon = 2/6/2018 9:27:30 PM msdyn_workorder = 07349988-840b-e811-a958-000d3a10877d_msdyn_workorder[] FpsPlugin: operation.Execute() FpsPlugin: PluginStage: 20 MessageName: Create FpsPlugin: Before calling message handler FpsPlugin: Before FpsPlugin: BeforeCreate FpsPlugin: BeforeCreateOrUpdate FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Dynamics.ScheduleCommon.Fps.FpsEventSource.LogOrganizationService.<>c.<LogRequest>b__10_4(OrganizationResponse x) at Microsoft.Dynamics.ScheduleCommon.Fps.FpsEventSource.LogOrganizationService.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute[TElement](QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute[TElement](Expression expression) at Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator[TElement](Expression expression) at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Microsoft.Dynamics.ScheduleCommon.Fps.BookingSetupMetadata.GetMetadataRecordsDB(IOrganizationService service, Boolean activeOnly) at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.get_BookingSetupMetadataDB() at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.SetBookingSetupMetadataField() at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.BeforeCreateOrUpdate() 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.ScheduleCommon.Fps.FpsPlugin.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory) at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider) FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: PluginLocal.Dispose, Depth: 1 </TraceText> </OrganizationServiceFault>
Any suggestions on what might be the issue here? Thanks in advance
Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Object reference not set to an instance of an object.Detail: <OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts"> <ActivityId>ee541d36-5418-47d4-abea-e86b2bf4aac8</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:string">0</d2p1:value> </KeyValuePairOfstringanyType> <KeyValuePairOfstringanyType> <d2p1:key>SubErrorCode</d2p1:key> <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value> </KeyValuePairOfstringanyType> </ErrorDetails> <Message>Object reference not set to an instance of an object.</Message> <Timestamp>2018-02-06T21:27:30.4080414Z</Timestamp> <ExceptionRetriable>false</ExceptionRetriable> <ExceptionSource i:nil="true" /> <InnerFault i:nil="true" /> <OriginalException i:nil="true" /> <TraceText>
[Microsoft.Dynamics.FieldService: Microsoft.Dynamics.FieldService.FieldServicePlugin][94f83cac-7732-4bb9-9cff-8f92992dd953: Field Service: Create (post-operation) for msdyn_workorder]FieldServicePlugin: PluginLocal.Create, Depth: 1FieldServicePlugin: PluginContext StartFieldServicePlugin: MessageName: CreateFieldServicePlugin: PrimaryEntityName: msdyn_workorderFieldServicePlugin: PrimaryEntityId: 07349988-840b-e811-a958-000d3a10877dFieldServicePlugin: SecondaryEntityName: noneFieldServicePlugin: Stage: 40FieldServicePlugin: PreEntityImages.Count: 0FieldServicePlugin: PostEntityImages.Count: 0FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.EntityFieldServicePlugin: OutputParameters: id = 07349988-840b-e811-a958-000d3a10877dFieldServicePlugin: SharedVariables: DefaultsAddedFlag = TrueFieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: IsolationMode: 1FieldServicePlugin: Mode: 0FieldServicePlugin: OrganizationName: org0b8e8f49FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ffFieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40fFieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: IsInTransaction: TrueFieldServicePlugin: Depth: 1FieldServicePlugin: IsExecutingOffline: FalseFieldServicePlugin: Parent PluginContext StartFieldServicePlugin: PluginContext StartFieldServicePlugin: MessageName: CreateFieldServicePlugin: PrimaryEntityName: msdyn_workorderFieldServicePlugin: PrimaryEntityId: 07349988-840b-e811-a958-000d3a10877dFieldServicePlugin: SecondaryEntityName: noneFieldServicePlugin: Stage: 30FieldServicePlugin: PreEntityImages.Count: 0FieldServicePlugin: PostEntityImages.Count: 0FieldServicePlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity SuppressDuplicateDetection = FalseFieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: DefaultsAddedFlag = TrueFieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: IsolationMode: 1FieldServicePlugin: Mode: 0FieldServicePlugin: OrganizationName: org0b8e8f49FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ffFieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40fFieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: IsInTransaction: TrueFieldServicePlugin: Depth: 1FieldServicePlugin: IsExecutingOffline: FalseFieldServicePlugin: Parent PluginContext StartFieldServicePlugin: PluginContext StartFieldServicePlugin: MessageName: ExecuteTransactionFieldServicePlugin: PrimaryEntityName: noneFieldServicePlugin: PrimaryEntityId: 00000000-0000-0000-0000-000000000000FieldServicePlugin: SecondaryEntityName: noneFieldServicePlugin: Stage: 30FieldServicePlugin: PreEntityImages.Count: 0FieldServicePlugin: PostEntityImages.Count: 0FieldServicePlugin: InputParameters: Requests = Microsoft.Xrm.Sdk.OrganizationRequestCollection ReturnResponses = TrueFieldServicePlugin: OutputParameters: FieldServicePlugin: SharedVariables: ChangedEntityTypes = System.Collections.Generic.Dictionary`2[System.String,System.String]FieldServicePlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FieldServicePlugin: IsolationMode: 1FieldServicePlugin: Mode: 0FieldServicePlugin: OrganizationName: org0b8e8f49FieldServicePlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ffFieldServicePlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40fFieldServicePlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331FieldServicePlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339FieldServicePlugin: IsInTransaction: TrueFieldServicePlugin: Depth: 1FieldServicePlugin: IsExecutingOffline: FalseFieldServicePlugin: PluginContext EndFieldServicePlugin: Parent PluginContext EndFieldServicePlugin: PluginContext EndFieldServicePlugin: Parent PluginContext EndFieldServicePlugin: PluginContext EndFieldServicePlugin: PluginLocal.Create, Depth: 1FieldServicePlugin: PluginLocal.Create, Depth: 1FieldServicePlugin: InitializePlugin: localFieldServicePlugin: ConfigurePluginFlagsSupportInternal()FieldServicePlugin: CreateEntityOperation(msdyn_workorder)FieldServicePlugin: Operation type: WorkOrderOperationFieldServicePlugin: operation.Initialize()FieldServicePlugin: InputEntity: ecl_customerassetsidentified = 1 statecode = 0 msdyn_longitude = -82.58249 statuscode = 1 msdyn_postalcode = 48001 msdyn_workordertype = ab51b225-84ba-e711-a950-000d3a10877d_msdyn_workordertype[] createdon = 2/6/2018 9:27:30 PM msdyn_latitude = 42.62563 msdyn_pricelist = 6f3fb46d-beb8-e711-a94e-000d3a109d70_pricelevel[] msdyn_worklocation = 690970000 transactioncurrencyid = b12a17b1-51b4-e711-a82a-000d3a1be40f_transactioncurrency[] msdyn_primaryincidenttype = a2d7da93-fac3-e711-a961-000d3a192e9a_msdyn_incidenttype[] msdyn_taxable = True ownerid = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] ecl_manageroverride = False modifiedon = 2/6/2018 9:27:30 PM msdyn_stateorprovince = MI stageid = msdyn_address1 = 5200 Taft Rd msdyn_taxcode = 40931035-b9cb-e711-a950-000d3a10877d_msdyn_taxcode[] msdyn_billingaccount = 10a01eb7-5a07-e811-a959-000d3a1087a0_account[] msdyn_serviceterritory = 7d33c488-50c9-e711-a94e-000d3a109d70_territory[] msdyn_workorderid = 07349988-840b-e811-a958-000d3a10877d msdyn_country = United States msdyn_primaryincidentdescription = Air Leak msdyn_isfollowup = False modifiedby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_serviceaccount = 10a01eb7-5a07-e811-a959-000d3a1087a0_account[] ecl_poreceived = 1 modifiedonbehalfby = msdyn_followuprequired = False owningbusinessunit = 75afed5f-49b4-e711-a82a-000d3a1be40f_businessunit[] traversedpath = msdyn_city = Algonac ecl_excludeoshafee = False ecl_allproductsavailable = False createdby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] processid = 00000000-0000-0000-0000-000000000000 msdyn_name = WO-0000192 msdyn_systemstatus = 690970006 msdyn_ismobile = False msdyn_subtotalamount = 0 msdyn_totalsalestax = 0 msdyn_totalamount = 0 msdyn_substatus = msdyn_instructions = msdyn_addressname = msdyn_address2 = msdyn_address3 = exchangerate = 1.0000000000 msdyn_totalamount_base = 0 msdyn_totalsalestax_base = 0 msdyn_subtotalamount_base = 0FieldServicePlugin: operation.Execute()FieldServicePlugin: PluginStage: 40 MessageName: CreateFieldServicePlugin: Before calling message handlerFieldServicePlugin: AfterFieldServicePlugin: AfterCreateFieldServicePlugin: AfterCreateOrUpdateFieldServicePlugin: PluginLocal.Create, Depth: 2FieldServicePlugin: PluginLocal.Dispose, Depth: 2FieldServicePlugin: PluginLocal.Dispose, Depth: 1FieldServicePlugin: PluginLocal.Dispose, Depth: 1FieldServicePlugin: Object reference not set to an instance of an object.
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Object reference not set to an instance of an object. (Fault Detail is equal to Exception details: ErrorCode: 0x80040265Message: Object reference not set to an instance of an object.; [Microsoft.Dynamics.Fps: Microsoft.Dynamics.ScheduleCommon.Fps.FpsPlugin][f64c55bc-7402-4bcb-bf7e-3490ed16b0d4: Microsoft Dynamics Fps: Create (pre-operation) for msdyn_resourcerequirement]FpsPlugin: PluginLocal.Create, Depth: 1FpsPlugin: PluginLocal.Create, Depth: 1FpsPlugin: PluginContext StartFpsPlugin: MessageName: CreateFpsPlugin: PrimaryEntityName: msdyn_resourcerequirementFpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877dFpsPlugin: SecondaryEntityName: noneFpsPlugin: Stage: 20FpsPlugin: PreEntityImages.Count: 0FpsPlugin: PostEntityImages.Count: 0FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.EntityFpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = TrueFpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570FpsPlugin: IsolationMode: 1FpsPlug...).
FieldServicePlugin: PluginLocal.Dispose, Depth: 1
[Microsoft.Dynamics.Fps: Microsoft.Dynamics.ScheduleCommon.Fps.FpsPlugin] [f64c55bc-7402-4bcb-bf7e-3490ed16b0d4: Microsoft Dynamics Fps: Create (pre-operation) for msdyn_resourcerequirement] FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginContext Start FpsPlugin: MessageName: Create FpsPlugin: PrimaryEntityName: msdyn_resourcerequirement FpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877d FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 20 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = True FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: Parent PluginContext Start FpsPlugin: PluginContext Start FpsPlugin: MessageName: Create FpsPlugin: PrimaryEntityName: msdyn_resourcerequirement FpsPlugin: PrimaryEntityId: 0b349988-840b-e811-a958-000d3a10877d FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 30 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Target = Microsoft.Xrm.Sdk.Entity FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: DefaultsAddedFlag = True FieldServiceContext.ResourceRequirement_DisablePrimaryCheckValidation = True FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: Parent PluginContext Start FpsPlugin: PluginContext Start FpsPlugin: MessageName: ExecuteTransaction FpsPlugin: PrimaryEntityName: none FpsPlugin: PrimaryEntityId: 00000000-0000-0000-0000-000000000000 FpsPlugin: SecondaryEntityName: none FpsPlugin: Stage: 30 FpsPlugin: PreEntityImages.Count: 0 FpsPlugin: PostEntityImages.Count: 0 FpsPlugin: InputParameters: Requests = Microsoft.Xrm.Sdk.OrganizationRequestCollection ReturnResponses = True FpsPlugin: OutputParameters: FpsPlugin: SharedVariables: ChangedEntityTypes = System.Collections.Generic.Dictionary`2[System.String,System.String] FpsPlugin: UserId: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: InitiatingUserID: 4c4c77e2-7f2e-4b87-897d-56aecb9c9570 FpsPlugin: IsolationMode: 1 FpsPlugin: Mode: 0 FpsPlugin: OrganizationName: org0b8e8f49 FpsPlugin: OrganizationId: 93cbd3b8-c58d-4630-bc60-93817a8f35ff FpsPlugin: BusinessUnitId: 75afed5f-49b4-e711-a82a-000d3a1be40f FpsPlugin: CorrelationId: af912444-2c6f-4e89-b520-967603b04331 FpsPlugin: RequestId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: OperationId: f83e2c3f-931c-4b45-9404-fd002995f339 FpsPlugin: IsInTransaction: True FpsPlugin: Depth: 2 FpsPlugin: IsExecutingOffline: False FpsPlugin: PluginContext End FpsPlugin: Parent PluginContext End FpsPlugin: PluginContext End FpsPlugin: Parent PluginContext End FpsPlugin: PluginContext End FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: PluginLocal.Create, Depth: 1 FpsPlugin: InitializePlugin: local FpsPlugin: ConfigurePluginFlagsSupportInternal() FpsPlugin: CreateEntityOperation(msdyn_resourcerequirement) FpsPlugin: Operation type: ResourceRequirementOperation FpsPlugin: operation.Initialize() FpsPlugin: InputEntity: msdyn_isprimary = True owningbusinessunit = 75afed5f-49b4-e711-a82a-000d3a1be40f_businessunit[] msdyn_latitude = 42.62563 modifiedonbehalfby = msdyn_allocationmethod = 192350000 statecode = 0 statuscode = 1 createdby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_longitude = -82.58249 ownerid = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] modifiedon = 2/6/2018 9:27:30 PM msdyn_resourcerequirementid = 0b349988-840b-e811-a958-000d3a10877d owninguser = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] modifiedby = 4c4c77e2-7f2e-4b87-897d-56aecb9c9570_systemuser[] msdyn_territory = 7d33c488-50c9-e711-a94e-000d3a109d70_territory[] msdyn_worklocation = 690970000 createdon = 2/6/2018 9:27:30 PM msdyn_workorder = 07349988-840b-e811-a958-000d3a10877d_msdyn_workorder[] FpsPlugin: operation.Execute() FpsPlugin: PluginStage: 20 MessageName: Create FpsPlugin: Before calling message handler FpsPlugin: Before FpsPlugin: BeforeCreate FpsPlugin: BeforeCreateOrUpdate FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Dynamics.ScheduleCommon.Fps.FpsEventSource.LogOrganizationService.<>c.<LogRequest>b__10_4(OrganizationResponse x) at Microsoft.Dynamics.ScheduleCommon.Fps.FpsEventSource.LogOrganizationService.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Client.OrganizationServiceContext.Execute(OrganizationRequest request) at Microsoft.Xrm.Sdk.Linq.QueryProvider.RetrieveEntityCollection(OrganizationRequest request, NavigationSource source) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute(QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups, String& pagingCookie, Boolean& moreRecords) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute[TElement](QueryExpression qe, Boolean throwIfSequenceIsEmpty, Boolean throwIfSequenceNotSingle, Projection projection, NavigationSource source, List`1 linkLookups) at Microsoft.Xrm.Sdk.Linq.QueryProvider.Execute[TElement](Expression expression) at Microsoft.Xrm.Sdk.Linq.QueryProvider.GetEnumerator[TElement](Expression expression) at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Microsoft.Dynamics.ScheduleCommon.Fps.BookingSetupMetadata.GetMetadataRecordsDB(IOrganizationService service, Boolean activeOnly) at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.get_BookingSetupMetadataDB() at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.SetBookingSetupMetadataField() at Microsoft.Dynamics.ScheduleCommon.Fps.Operations.ResourceRequirementOperation.BeforeCreateOrUpdate() 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.ScheduleCommon.Fps.FpsPlugin.ExecutePlugin(ITracingService tracingService, IPluginExecutionContext pluginContext, IOrganizationServiceFactory serviceFactory) at FieldOne.PluginCommon.FosPluginBase.Execute(IServiceProvider serviceProvider) FpsPlugin: PluginLocal.Dispose, Depth: 1 FpsPlugin: PluginLocal.Dispose, Depth: 1
</TraceText></OrganizationServiceFault>
*This post is locked for comments
Thanks for your replies. I made the custom plugin Async, it is working now
I concur with Thomas, if you have anything running on create make sure it's asynchronous otherwise it will fail.
What I would check first is if there are any custom plugins which are executing on post create of Work Order? Check in the Plugin Registration and see.
Also the main error is Object reference not set to an instance of an object. Which means that you are trying to access a field which is null.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156