Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

state code or status code invalid when closing an opportunity

(0) ShareShare
ReportReport
Posted on by 265

We recently upgraded to Hosted CRM2013, a user is attempting to close an opportunity and gets the error code "state code or status code invalid" It wont let me download the log file to see where the error is occuring.

*This post is locked for comments

  • Suggested answer
    RE: state code or status code invalid when closing an opportunity

    Hi Chasab

    Microsoft Dynamics CRM 2013 Update Rollup 1 (UR1) is available now.

    This rollup contains stability and memory-consumption improvements, as well as fixes for 32 issues. Many of the resolutions like Opportunity closed as won does not take custom status reason while closing.

    support.microsoft.com/.../2891271

  • John Zhang Profile Picture
    John Zhang 5 on at
    RE: state code or status code invalid when closing an opportunity

    We have this same issue. please fix this ASAP! we can't use CRM 2013 without fixing this issue

  • Lochana Profile Picture
    Lochana 5 on at
    RE: state code or status code invalid when closing an opportunity

    Hi there,

    Are there any updates regarding this issue? Has a fix been implemented?

    Cheers,

    Lochana

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: state code or status code invalid when closing an opportunity

    Hello,

    we need to export the Opportunity entity without dependent components and modify the xml file. As suggested by CHASAB I would recommend you to create a service request for CRM Online support from the below contact information as they would help and walk you through the entire process in modifying the xml in the recommended way. Also you can check with the CRM Online support about the fix for this issue in detail.

    Microsoft Customer central number : Phone: 1-800-936-4900 in the United States or Canada

    Link to create CRM Online support ticket : rc.crm.dynamics.com/.../support.aspx

    Thanks

  • Chasab Profile Picture
    Chasab 265 on at
    RE: state code or status code invalid when closing an opportunity

    GSLESZ My advice would be to put in a ticket, I had a call with a microsoft tech today and he walked me through the process of exporting the opportunity  xml files, gave me the correct code to edit it, and walked me through the re-upload process.

  • gslesz Profile Picture
    gslesz 10 on at
    RE: state code or status code invalid when closing an opportunity

    CHURCHILL - Do you know when this issue might be resolved? My users are very frustrated. Also, where is the customization.xml file located so I can try and edit it? I'm assuming this is possible even for CRM Online users. Any help would be appreciated.

    Thanks

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: state code or status code invalid when closing an opportunity

    Hello,

    This is a recently discovered issue with CRM 2013 in which custom status codes cannot be used for closing opportunities as 'Won' because the default value for Status reason field (Statecode ) "Won" is missing. Custom values are ignored and the system instead tries to save it with the system default status reason value of 'Won' and currently investigation is in progress.

    We may need to add the default value "Won" in the Customization.xml of opportunity entity as a workaround which should also take care of your issue and also now you do have another workaround which Marco suggested is also the better one temporarily i.e. closing the opportunity as won via workflow.

    Thank You.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: state code or status code invalid when closing an opportunity

    Ok, thanks... and if try to close as won from the list of record (selecting the opportunity) and not inside the single form... what happen?

  • Chasab Profile Picture
    Chasab 265 on at
    RE: state code or status code invalid when closing an opportunity

    This appears to work.

    I created a on demand workflow that checks the creator is me, and if so closes the opportunity as won status "test" and it is now closed as won.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: state code or status code invalid when closing an opportunity

    As a test you could try to close the opportunity state with a WF...  

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans