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)

Status Reason Code Error

(0) ShareShare
ReportReport
Posted on by

Good Morning

I recently created some new status reason codes against the lead entity for "open" leads and they are set-up as follows:

16260.Capture.PNG

When converting a lead to an opportunity I now get the following error:

State Code or Status Code is invalid

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring xml:lang="en-GB">100000000 is not a valid status code on opportunity with Id 2afc8acb-6c13-e611-80c7-0050569210f3.</faultstring><detail><OrganizationServiceFault xmlns="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ErrorCode>-2147187704</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Message>100000000 is not a valid status code on opportunity with Id 2afc8acb-6c13-e611-80c7-0050569210f3.</Message><Timestamp>2016-05-06T09:27:51.3329516Z</Timestamp><InnerFault><ErrorCode>-2147187704</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Message>100000000 is not a valid status code on opportunity with Id 2afc8acb-6c13-e611-80c7-0050569210f3.</Message><Timestamp>2016-05-06T09:27:51.3339565Z</Timestamp><InnerFault><ErrorCode>-2147220970</ErrorCode><ErrorDetails xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Message>System.ArgumentException: 100000000 is not a valid status code on opportunity with Id 2afc8acb-6c13-e611-80c7-0050569210f3.

Parameter name: statusCode</Message><Timestamp>2016-05-06T09:27:51.3339565Z</Timestamp><InnerFault i:nil="true"/><TraceText i:nil="true"/></InnerFault><TraceText i:nil="true"/></InnerFault><TraceText i:nil="true"/></OrganizationServiceFault></detail></s:Fault></s:Body></s:Envelope>

So as I understand this the opportunity entity does not recognise the in progress 100,000,000 value and I should edit my status code reasons to reflect this setup in opportunity entity.

However my question is how do I go about doing this - currently my opportunity status show as:

6786.Capture1.PNG

and if I try to add in an additional one the value shows as 287,960,001 which I presume will not match and the value ID is greyed out so can't be adjusted.

 

Am I doing something wrong here in this setup?

 

Thanks

Robin 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alessandro Graps Profile Picture
    2,664 on at

    Hi,

    you need to create a mapping between lead new status and opportnuity.

    you have three ways:

    1: you need to create the status in opportnunity also

    2: You create a Plugin to map manually the status

    3: by javascript in onsave method.

    thanks

    A.G.

  • Community Member Profile Picture
    on at

    Hi

    Ideally I just want to use to use option 1 to create new statues in the opportunity however how do I ensure they match up to those coming from the lead - that is the part I'm confused about!

    Thanks

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