Hi,
I would like help with this question. When I try to resolve a case in dynamics I get this error message in the plugin trace log:
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Exception occured in SLAInstance management custom action : System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.GetSLAInstance(String regardingId, Guid slaItemId)
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.UpdateSLAKPIInstance(String regardingId, String entityName, Entity entityRecord, Boolean isSlaInstanceCreatedorUpdated, ServiceLevelAgreementKPI slaKpi, List`1 slaItemsFilteredWithKpi, Int32 forceEvaluation)
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.ManageSlaInstancesForTargetRecord(String regardingId, String newSlaId, String entityName, Int32 forceEvaluation) (Fault Detail is equal to Exception details:
ErrorCode: 0x80040265
Message: Exception occured in SLAInstance management custom action : System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.GetSLAInstance(String regardingId, Guid slaItemId)
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.UpdateSLAKPIInstance(String regardingId, String entityName, Entity entityRecord, Boolean isSlaInstanceCreatedorUpdated, ServiceLevelAgreementKPI slaKpi, List`1 slaItemsFilteredWithKpi, Int32 forceEvaluation)
at Microsoft.Dynamics.SLAManagement.Plugins.SLAInstanceService.ManageSlaInstancesForTargetRecord(String regardingId, String newSlaId, String entityName, Int32 forceEvaluation)
TimeStamp: 2023-07-03T15:04:32.0000000Z
OriginalException: SdkClientError
ExceptionSource: SdkClientError
--
).
Have anyone encountered this before? I have noticed that it is only possible to close cases if the SLA has not been set on a case.
All tips are highly appreciated. Thanks!