web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)
Active Discussion

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

  • 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans