use incorrect case for Entity Privilege Rule prevents pages from rendering
After editing display rule for a homepage and form ribbon button I was no longer able to access the entity and received a "Query Builder Error: the specified record does not exist in Microsoft Dynamics CRM"
Created a "Display Rule" for a button using the EntityPrivilegeRule. Set the EntityName to c2dSecurityIsTeamManager instead of c2dsecurityisteammanager (i.e. case was wrong).
From the Event Log:
Exception message: The entity with a name = 'c2d_SecurityIsTeamManager' was not found in the MetadataCache.
Fixing the case of the entity and re-publishing the solution brought the system back to a working state.
Ramakrishna VS Sannidi commented
And one more issue i am seeing from past couple of days is that when entity ribbon is modified and added some display rules, import solution is showing round and round all the time. I think it is unable to publish the solution.
Thanks for the suggestion.
I think the solution would be to show a drop down of all entities rather than a free text box, however this would require an additional request to CRM to get this list of entities.