web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Cases not created by Automatic Record creation

(0) ShareShare
ReportReport
Posted on by

Hi,

I do get this error intermittently but there is no much info on the log file, can you help? Thanks

Plugin Trace:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep6]

 
 [Microsoft.Dynamics.Service.Plugins: Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate]
 [485c2908-cfd8-e611-80e8-00155db32b08: Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate: Create of incident]
 Entered Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.Execute(), Correlation Id: c97446e4-0e6a-4479-b176-77e237867b60, Initiating User: 656c56e6-ce14-e911-a81a-000d3ab24a78
 Exiting Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.Execute(), Correlation Id: c97446e4-0e6a-4479-b176-77e237867b60, Initiating User: 656c56e6-ce14-e911-a81a-000d3ab24a78
 


Error Message:

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: An unexpected error occurred.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>1480203e-7c64-4024-b2c4-5ed0e7222f6a</ActivityId>
  <ErrorCode>-2147220970</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiExceptionSourceKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiOriginalExceptionKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: An unexpected error occurred. ---&gt; System.ArgumentNullException: Value cannot be null.
Parameter name: text
   at System.ServiceModel.FaultReasonText..ctor(String text)
   at System.ServiceModel.FaultReason..ctor(String text)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Int32 errorCode)
   at Microsoft.Crm.Service.ObjectModel.IncidentService.ValidatePrimaryContact(Case incident, Boolean isUpdateCase)
   at Microsoft.Crm.Service.ObjectModel.IncidentService.PreValidateForCreate(Case incident)
   at Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.ExecuteCrmPlugin(LocalPluginContext localContext)
   at Microsoft.Dynamics.Solution.Common.PluginBase.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   --- End of inner exception stack trace ---
   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.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepKey</d2p1:key>
      <d2p1:value xmlns:d4p1="schemas.microsoft.com/.../Serialization" i:type="d4p1:guid">485c2908-cfd8-e611-80e8-00155db32b08</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiDepthKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:int">4</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiActivityIdKey</d2p1:key>
      <d2p1:value xmlns:d4p1="schemas.microsoft.com/.../Serialization" i:type="d4p1:guid">1480203e-7c64-4024-b2c4-5ed0e7222f6a</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">msdynce_Service</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>ApiStepSolutionNameKey</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">msdynce_Service</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>An unexpected error occurred.</Message>
  <Timestamp>2019-03-21T10:18:45.4969019Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault>
    <ActivityId>1480203e-7c64-4024-b2c4-5ed0e7222f6a</ActivityId>
    <ErrorCode>-2147220970</ErrorCode>
    <ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic">
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiExceptionSourceKey</d3p1:key>
        <d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:string">Plugin/Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiOriginalExceptionKey</d3p1:key>
        <d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:string">Microsoft.Crm.CrmException: An unexpected error occurred. ---&gt; System.ArgumentNullException: Value cannot be null.
Parameter name: text
   at System.ServiceModel.FaultReasonText..ctor(String text)
   at System.ServiceModel.FaultReason..ctor(String text)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)
   at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Int32 errorCode)
   at Microsoft.Crm.Service.ObjectModel.IncidentService.ValidatePrimaryContact(Case incident, Boolean isUpdateCase)
   at Microsoft.Crm.Service.ObjectModel.IncidentService.PreValidateForCreate(Case incident)
   at Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.ExecuteCrmPlugin(LocalPluginContext localContext)
   at Microsoft.Dynamics.Solution.Common.PluginBase.Execute(IServiceProvider serviceProvider)
   at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
   at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
   --- End of inner exception stack trace ---
   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.&lt;&gt;c__DisplayClass2_1.&lt;Execute&gt;b__0()</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiStepKey</d3p1:key>
        <d3p1:value xmlns:d5p1="schemas.microsoft.com/.../Serialization" i:type="d5p1:guid">485c2908-cfd8-e611-80e8-00155db32b08</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiDepthKey</d3p1:key>
        <d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:int">4</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiActivityIdKey</d3p1:key>
        <d3p1:value xmlns:d5p1="schemas.microsoft.com/.../Serialization" i:type="d5p1:guid">1480203e-7c64-4024-b2c4-5ed0e7222f6a</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiPluginSolutionNameKey</d3p1:key>
        <d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:string">msdynce_Service</d3p1:value>
      </KeyValuePairOfstringanyType>
      <KeyValuePairOfstringanyType>
        <d3p1:key>ApiStepSolutionNameKey</d3p1:key>
        <d3p1:value xmlns:d5p1="www.w3.org/.../XMLSchema" i:type="d5p1:string">msdynce_Service</d3p1:value>
      </KeyValuePairOfstringanyType>
    </ErrorDetails>
    <Message>An unexpected error occurred.</Message>
    <Timestamp>2019-03-21T10:18:45.4969019Z</Timestamp>
    <ExceptionRetriable>false</ExceptionRetriable>
    <ExceptionSource i:nil="true" />
    <InnerFault>
      <ActivityId>1480203e-7c64-4024-b2c4-5ed0e7222f6a</ActivityId>
      <ErrorCode>-2147220970</ErrorCode>
      <ErrorDetails xmlns:d4p1="schemas.datacontract.org/.../System.Collections.Generic" />
      <Message>System.ArgumentNullException: Value cannot be null.
Parameter name: text</Message>
      <Timestamp>2019-03-21T10:18:45.4969019Z</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 i:nil="true" />
  </InnerFault>
  <OriginalException i:nil="true" />
  <TraceText>[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep6]

 
 [Microsoft.Dynamics.Service.Plugins: Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate]
 [485c2908-cfd8-e611-80e8-00155db32b08: Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate: Create of incident]
 Entered Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.Execute(), Correlation Id: c97446e4-0e6a-4479-b176-77e237867b60, Initiating User: 656c56e6-ce14-e911-a81a-000d3ab24a78
 Exiting Microsoft.Dynamics.Service.Plugins.PreOperationIncidentCreate.Execute(), Correlation Id: c97446e4-0e6a-4479-b176-77e237867b60, Initiating User: 656c56e6-ce14-e911-a81a-000d3ab24a78
 </TraceText>
</OrganizationServiceFault>

*This post is locked for comments

I have the same question (0)
  • Georgiana27 Profile Picture
    5 on at

    Hello Jorge,

    You can try first verifying if you populate the required lookup field "Customer" (customerid) for the case when you create/import that respective case.

    Usually this error:

    System.ArgumentNullException: Value cannot be null.

    Parameter name: text

      at System.ServiceModel.FaultReasonText..ctor(String text)

      at System.ServiceModel.FaultReason..ctor(String text)

      at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException, Boolean enableTrace)

      at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowContrappears olException)

      at Microsoft.Dynamics.Solution.Common.CrmException..ctor(String message, Int32 errorCode)

      at Microsoft.Crm.Service.ObjectModel.IncidentService.ValidatePrimaryContact(Case incident, Boolean isUpdateCase)

    appears if this field "Customer" (customerid) is empty.

    If this does not solve the issue, please raise a case with Microsoft support.

    Please let your reply on this thread if populating the field helps.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans