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…
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.
