Monday, December 30, 2013

Microsoft Dynamics CRM: Correcting Multiple Default Public Views

I'm not sure how this happened. It's probably a side effect caused by importing a 2011 solution into 2013. For whatever reason, I have multiple default public views for the same entity.


To fix this, follow these steps.

Step 1: Create a new view called something like "TEST". You'll be deleting it later so it doesn't really make any difference what you call it. Just call it something obviously superfluous.



Step 2: Select the "TEST" view and make it the default public view. One of the duplicate "Default Public View" settings will revert back to "Public View". At this point you'll still have two "Default Public View" views. Wait, it'll get better.

Step 3: Double click the "TEST" view to open it. Now delete it. Don't bother trying the shortcut to delete it from the list view, it doesn't work. For some reason deleting it from the view edit window works.


Step 4: Now you have a view list with only one "Default Public View". Check to make sure it's the correct one. If not, select the correct view and set it as the default.


This beats having to edit the XML as suggested here. If this doesn't work, you can try to follow these instructions. I wasn't required to save the solution between steps to get it to work.