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)

Deleting OOTB Opportunity status reason breaks entity

(0) ShareShare
ReportReport
Posted on by 3,079

We're testing D365 v9 (both online and on-premise, at the moment).  We noticed that an OOTB status reason we'd deleted from Opportunities was for some reason back after importing our v8 solution into v9.  We deleted it again - which it happily let us do - and it broke things.  Specifically, we couldn't edit the field any more, or go to any Opportunity fields.  This status reason is not used anywhere, and the status reason field displays on a view just fine.

The error text that shows either when editing the field or when going to the form is "An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code".  The logs just have a "System.NullReferenceException: Object reference not set to an instance of an object" exception.  I could understand if this error was just happening on the form - I can't find any reference to it, but there might be something I'm missing.  But why would the field edit be broken as well?

Anyway, we've got the system back to normal, by exporting that field from a new org and importing into the broken systems.  But just wanted to highlight this for others.  Will report it as a bug as well.

*This post is locked for comments

I have the same question (0)
  • Flydancer Profile Picture
    1,332 on at

    Deleting OOB Entities, Fields etc. is a no-go in CRM/Dynamics as you seem to have learned the hard way.

  • awalters Profile Picture
    3,079 on at

    We did not delete an entity or a field.  We deleted a status reason (not the status reason field).  This is supposed to be doable, and it was allowed through the GUI in the normal, supported way

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