We got this error while executing our plugin. Within plugin we were making sql call to fileteredViews.
For impersonation we were making use of SETUSER keyword.
The plugin was working fine in development and test server. But started giving the error in case of Production.
We replaced SETUSER with EXECUTE AS USER and everything was fine than.
http://blogs.msdn.com/crm/archive/2007/05/21/writing-crm-callouts-with-filtered-views.aspx
Bye…
Posted in Microsoft Dynamics CRM Tagged: CRM

Like
Report
*This post is locked for comments