Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Error on Opportunity when Close As Won or Lost

Posted on by

Hi,

We are getting following error when we are closing opportunity as Won or Lost

The Web Service plug-in failed in OrganizationId: 8f2c1c45-866b-e311-80b7-005056ab9521; SdkMessageProcessingStepId: d5cdbb1b-ea3e-db11-86a7-000a3a5473e8; EntityName: opportunity; Stage: 30; MessageName: Win; 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.MissingMethodException: Constructor on type 'Microsoft.Crm.Sales.Entities.OpportunityClose' not found.
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Microsoft.Crm.BusinessEntities.EntityClassFactory.CreateInstance(EntityMetadata metadata, IOrganizationContext orgContext)
at Microsoft.Crm.BusinessEntities.BusinessEntity.Converter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
at Microsoft.Crm.BusinessEntities.ConversionHelpers.Convert(ICrmConversionContext conversionContext, Object source, Type destinationType)
at Microsoft.Crm.Extensibility.DictionaryMapper.Map(ParameterCollection inputs, ICrmConversionContext context)
at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
.

*This post is locked for comments

  • Nha Profile Picture
    Nha 65 on at
    RE: Error on Opportunity when Close As Won or Lost

    Why not search for WinOpportunityRequest or LoseOpportunityRequest and there are the samples

    https://nishantrana.me/2008/07/11/closing-an-opportunity-programmatically-crm/

    msdn.microsoft.com/.../microsoft.crm.sdk.messages.winopportunityrequest.aspx

  • Suggested answer
    Daniel Wikell Profile Picture
    Daniel Wikell 2,360 on at
    RE: Error on Opportunity when Close As Won or Lost

    Hi

    Based on the error appearing in Microsoft.Crm.Extensibility.InternalOperationPlugin this seems to be an error from the internal CRM processes that are part of the inner workings of CRM. It looks like it fails to create the OpportunityClose type which of course is neccessary in order to close an opportunity. This type should always be available since it's an out-of-the-box entity.

    Since this seems to be an internal error I suggest you contact Microsoft Support and provide them with that error message.

  • M.Azwar Alam Profile Picture
    M.Azwar Alam on at
    RE: Error on Opportunity when Close As Won or Lost

    Hi

    Thank you for your reply. I am in search for that field as well but no luck :(

  • Suggested answer
    saadzag Profile Picture
    saadzag 1,145 on at
    RE: Error on Opportunity when Close As Won or Lost

    Hello,

    I think that there is a field required to close the opportunity, and that field is empty.

    Maybe the field is hidden.

    Saad

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans