Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Campaign Error in CRM on Premise 9.1.3

Posted on by 107

I have recently upgraded to 9.1.3 from 9.0.

The issue I'm having is when I try to save a new Campaign I get an error.

The error appears when I click save.

The data base is at the same level as the software.

The log is below.

Unhandled exception:
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: 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>5254198d-27b8-42d0-a36a-45c950144176</ActivityId>
<ErrorCode>-2147220891</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.Marketing.Plugins.PostOperationCampaignCreate</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Object reference not set to an instance of an object. ---&gt; Microsoft.Xrm.Sdk.InvalidPluginExecutionException: Object reference not set to an instance of an object. ---&gt; System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Marketing.Plugins.PostOperationCampaignCreate.SafeGetEntityReference(Campaign campaign, IMarketingPluginContext`1 localContext)
at Microsoft.Dynamics.Marketing.Plugins.PostOperationCampaignCreate.ExecuteCrmPlugin(IMarketingPluginContext`1 localContext)
at Microsoft.Dynamics.Marketing.Plugins.MarketingPluginBase.ExecutePlugin(MarketingPluginContext`1 pluginContext)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Marketing.Plugins.MarketingPluginBase.ExecutePlugin(MarketingPluginContext`1 pluginContext)
at Microsoft.Dynamics.Marketing.Plugins.MarketingPluginBase.&lt;&gt;c__DisplayClass8_0.&lt;Execute&gt;b__0()
at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute(ILogger logger, EventId eventId, ActivityType activityType, Action action, IEnumerable`1 additionalCustomProperties)
at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute(ILogger logger, XrmTelemetryActivityType activityType, Action action)
at Microsoft.Dynamics.Solution.Common.PluginInternalLogger.Execute(XrmTelemetryActivityType activityType, Action action)
at Microsoft.Dynamics.Marketing.Common.Logger.Execute(XrmTelemetryActivityType activityType, Action action)
at Microsoft.Dynamics.Marketing.Plugins.MarketingPluginBase.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__DisplayClass3_0.&lt;RunStep&gt;b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">bc32651f-1167-4a62-b9d5-f02cb170b178</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">5254198d-27b8-42d0-a36a-45c950144176</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">msdynce_Marketing</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">msdynce_Marketing</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionCategory</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">ClientError</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionMesageName</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">IsvAborted</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionHttpStatusCode</d2p1:key>
<d2p1:value xmlns:d4p1="">www.w3.org/.../XMLSchema" i:type="d4p1:string">400</d2p1:value>
</KeyValuePairOfstringanyType>
<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>
<HelpLink>go.microsoft.com/.../
<Message>Object reference not set to an instance of an object.</Message>
<Timestamp>2021-09-01T14:59:28.1962504Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Dynamics.Marketing.Plugins: Microsoft.Dynamics.Marketing.Plugins.PostOperationCampaignCreate]
[bc32651f-1167-4a62-b9d5-f02cb170b178: Marketing.PostOperationCampaignCreate]


</TraceText>
</OrganizationServiceFault>

  • Suggested answer
    CU02122005-1 Profile Picture
    CU02122005-1 107 on at
    RE: Campaign Error in CRM on Premise 9.1.3

    I installed the newly released 9.1.4.31 and if fixed my problem.

  • CU02122005-1 Profile Picture
    CU02122005-1 107 on at
    RE: Campaign Error in CRM on Premise 9.1.3

    Thanks for the feedback but the plugin in question is an out of the box plugin. I do not have the source code for it.

    Testing shows that a brand new organization has the same issue. So customization is not the issue.

  • RE: Campaign Error in CRM on Premise 9.1.3

    Hello, I recommend you to check this thread: community.dynamics.com/.../system-servicemodel-faultexception-1-microsoft-xrm-sdk-organizationservicefault-an-unexpected-error-occurred

    I hope it helps!

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans