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)

State code or Status Code is invalid when Qualifying lead

(0) ShareShare
ReportReport
Posted on by

I am building a solution in my test environment and I am getting the State code of Status code is invalid when trying to qualify a lead. I have removed the 'In Process' (1) status reason on the opportunity which is what I thought was the issue because when I change the status on the Lead from 'New' (1) to Contacted (2) the process works. Further I have the same set up in production and I am not getting the error.

 

<Message>System.ArgumentException: 1 is not a valid status code on opportunity with Id bdbc6000-681f-e511-b3f7-0050569e1c91.

I tried to add a new status reason on the opportunity and then in SQL I changed the attributevalue from 100000002 to 1 in the stringmapbase table, I also adjusted the statusmapbase table and the filterstringmap table, but when I publish all of these revert to 100000002.

Is there a way to further find the issue and resolve it?

 

Thank you,

Mike

 

 

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    Try to disqualify the lead first. Then reactivate and then qualify.

  • Verified answer
    PS Profile Picture
    23,577 on at

    Add a status reason to your opportunity and enter 1 as the value.

    Why did you delete it, thats causing this problem...

    Have you tried this www.iotap.com/.../crm-picklist-and-the-stringmap-table-crm-4-0-

  • Suggested answer
    Community Member Profile Picture
    on at

    Remove the mapping of status reason between the lead and any other entity (Account, Contact, and Opportuniy) 

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