Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Create order from quote: I am getting below error when creating an order from quote entity CRM.

Posted on by Microsoft Employee

<s:Envelope xmlns:s="schemas.xmlsoap.org/.../envelope"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xmlns:xml="www.w3.org/.../namespace" xml:lang="en-US">An unexpected error occurred.</faultstring><detail><OrganizationServiceFault xmlns="schemas.microsoft.com/.../Contracts"><ErrorCode>-2147220970</ErrorCode><ErrorDetails><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">CallStack</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:string"> at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>An unexpected error occurred.</Message><Timestamp>2018-05-28T09:29:51.611301Z</Timestamp><InnerFault><ErrorCode>-2147220970</ErrorCode><ErrorDetails><KeyValuePairOfstringanyType><a:key xmlns:a="schemas.datacontract.org/.../System.Collections.Generic">CallStack</a:key><a:value xmlns:a="schemas.datacontract.org/.../System.Collections.Generic" xmlns:i="www.w3.org/.../XMLSchema-instance" i:type="b:string"> at System.Guid..ctor(String g)
at Microsoft.Crm.ObjectModel.BusinessProcess.WorkflowConditionNextStageEvaluator.GetNextStage(StageStep stage)
at Microsoft.Crm.ObjectModel.BusinessProcess.ActivePathEnumerator.MoveNext()
at Microsoft.Crm.ObjectModel.BusinessProcess.ActivePathCalculator.Calculate(String targetEntityName)
at Microsoft.Crm.ObjectModel.NextProcessStageInformationFinder.CalculateGlobalStageAndTraversedInformation(String firstEntityName, String nextEntityName)
at Microsoft.Crm.ObjectModel.NextStageNavigator.NavigateToNextEntity(Guid processId, IBusinessEntity sourceEntity, IBusinessEntity updatedSource, IBusinessEntity targetEntity, Boolean updateSource, ExecutionContext context)
at Microsoft.Crm.Sales.ObjectModel.QuoteService.CheckForProcessOnQuote(BusinessEntityMoniker quoteMoniker, BusinessEntity targetSalesOrder, ExecutionContext context)
at Microsoft.Crm.Sales.ObjectModel.QuoteService.ConvertQuoteToSalesOrder(Guid quoteId, EntityExpression entityExpression, ExecutionContext context, DateTime quoteCloseDate, Int32 quoteCloseStatusCode, String quoteCloseSubject, String quoteCloseDescription)</a:value></KeyValuePairOfstringanyType></ErrorDetails><Message>System.ArgumentNullException: Value cannot be null.
Parameter name: g</Message><Timestamp>2018-05-28T09:29:51.6163034Z</Timestamp><InnerFault xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /><TraceText xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /></InnerFault><TraceText xmlns:i="www.w3.org/.../XMLSchema-instance" i:nil="true" /></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    yes i have custom fields on order entity but set as optional.

  • Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    Is there any custom field in order entity?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    Hi, required fields are mapped from quote.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    Hi Justin,

    All required fields on order are mapped from the quote.

    Thanks,

  • Suggested answer
    Justinjose Profile Picture
    Justinjose 2,707 on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    Hi testrayan,

    Crm is complaining because of null value.  Can you make sure Quote Entity is not missing any Order mandatory fields or make custom field as optional in the order Entity for testing purpose to find which field is causing the issue.

    Thanks

    Justin Jose

  • Ben Thompson Profile Picture
    Ben Thompson 6,350 on at
    RE: Create order from quote: I am getting below error when creating an order from quote entity CRM.

    It's failing within the Microsoft.Crm.Sales.ObjectModel.QuoteService.ConvertQuoteToSalesOrder function due to a missing value. Do you have any custom fields on the order entity that are marked as mandatory?

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans