locked
Report Error when running "Selected Record" or "Records on Current Page" Option on any reports from a CRM Grid RRS feed

  • Question

  • Wierd Problem at the moment, from within the outlook clients, reports will not run if you select the "Selected Record" or "Records On Current Page"

    It is an IFD and the error doesnt not occur if going through the web browser.

    The trace suggests that the authentication is wrong, im guessing the problem occurs when trying to get the selected record or the records on the page.... the GUID for the user is a blank guid also!

    The system is rolled up to 12

    thank you in advance!


    Jonathan Nachman MBSP, MCTS

    Microsoft CRM Technical Blog

    Technical CRM Consultant for KMS Software
    Thursday, August 26, 2010 10:46 AM

All replies

  • Hi Jonathan,

    Can you post the error message that the user sees and the trace error?


    Best regards,

    Don Chang
    Online Technical Community
    -----------------------------------------------------------------------------------------
    We hope you get value from our new forums platform! Tell us what you think:
    http://social.microsoft.com/Forums/en-US/partnerfdbk/threads
    ------------------------------------------------------------------------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, August 30, 2010 9:43 PM
    Moderator
  • The error i see on the trace indicates that the supplied user has no security rights.....this is obviously not that case, it seems to be when the crm has to access the selected records on the grid when using the crm client as this works when in the web client.

    Crm Exception: Message: SecLib::CheckPrivilege failed. Returned hr = -2147209463, User: db3d5346-4a88-df11-99c8-001e4f203ac9, ErrorCode: -2147209463
    [2010-08-31 04:19:58.8] Process: w3wp |Organization:08839c52-11ce-4cf1-aa8a-5f9a09cf90c8 |Thread:   11 |Category: Platform |User: db3d5346-4a88-df11-99c8-001e4f203ac9 |Level: Error | MessageProcessor.Execute
    >MessageProcessor fail to process message 'Retrieve' for 'systemuser'.
    [2010-08-31 04:19:58.8] Process: w3wp |Organization:08839c52-11ce-4cf1-aa8a-5f9a09cf90c8 |Thread:   11 |Category: Platform.Sdk |User: db3d5346-4a88-df11-99c8-001e4f203ac9 |Level: Error | CompositeSoapExtensionExceptionHandler.Handle
    >CrmSoapExtension detected CrmException:
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.BusinessEntities.CrmSecurityException: SecLib::CheckPrivilege failed. Returned hr = -2147209463, User: db3d5346-4a88-df11-99c8-001e4f203ac9
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.TryCheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
       at Microsoft.Crm.BusinessEntities.SecurityExtension.PreRetrieveHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, ExtensionEventArgs e)
       at Microsoft.Crm.BusinessEntities.SecurityExtension.PreRetrieveHandler(ExtensionEventArgs e, Object sender)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.PreRetrieveEventHandler.Invoke(Object sender, ExtensionEventArgs e)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32[] deletionCodes, Int32 languageCode)
       at Microsoft.Crm.BusinessEntities.BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
       at Microsoft.Crm.Extensibility.InternalOperationPlugin.Execute(IPluginExecutionContext context)
       at Microsoft.Crm.Extensibility.PluginStep.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
       at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
       at Microsoft.Crm.Sdk.Crm2007.CrmService.Execute(Request request)
       --- End of inner exception stack trace ---
    [2010-08-31 04:19:59.4] Process: w3wp |Organization:08839c52-11ce-4cf1-aa8a-5f9a09cf90c8 |Thread:   11 |Category: Exception |User: db3d5346-4a88-df11-99c8-001e4f203ac9 |Level: Error | CrmException..ctor
     at CrmException..ctor(String message, Int32 errorCode)
     at CrmSecurityException..ctor(String message, Int32 errorCode)
     at SecurityLibrary.TryCheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
     at SecurityLibrary.CheckPrivilege(Guid user, Guid privilege, ExecutionContext context)
     at SecurityExtension.PreRetrieveHandlerEntityPrivilegeCheck(Object sender, SecurityTraits traits, ExtensionEventArgs e)
     at SecurityExtension.PreRetrieveHandler(ExtensionEventArgs e, Object sender)
     at PreRetrieveEventHandler.Invoke(Object sender, ExtensionEventArgs e)
     at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context, Int32[] deletionCodes, Int32 languageCode)
     at BusinessProcessObject.Retrieve(BusinessEntityMoniker moniker, EntityExpression entityExpression, ExecutionContext context)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at InternalOperationPlugin.Execute(IPluginExecutionContext context)
     at PluginStep.Execute(PipelineExecutionContext context)
     at Pipeline.Execute(PipelineExecutionContext context)
     at MessageProcessor.Execute(PipelineExecutionContext context)
     at InternalMessageDispatcher.Execute(PipelineExecutionContext context)
     at ExternalMessageDispatcher.Execute(String messageName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, PropertyBag fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at RequestBase.Process(CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at CrmServiceInternal.Execute(RequestBase request, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId)
     at CrmService.Execute(Request request)
     at RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
     at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
     at LogicalMethodInfo.Invoke(Object target, Object[] values)
     at WebServiceHandler.Invoke()
     at WebServiceHandler.CoreProcessRequest()
     at SyncSessionlessHandler.ProcessRequest(HttpContext context)
     at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
     at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
     at ApplicationStepManager.ResumeSteps(Exception error)
     at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
     at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
     at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
     at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)


    Jonathan Nachman MBSP, MCTS

    Microsoft CRM Technical Blog

    Technical CRM Consultant for KMS Software
    Tuesday, August 31, 2010 8:08 AM
  • SRSS Data Connector is installed and CRM is configured to use Online Company?

    Regards, Donna

    Wednesday, September 1, 2010 6:21 PM
  • we installed the SSRS and reinstalled over it once we went IFD and as i said earlier the problem is when crm tries to check which records the report has to run on.

    every where else works!


    Jonathan Nachman MBSP, MCTS

    Microsoft CRM Technical Blog

    Technical CRM Consultant for KMS Software
    Wednesday, September 1, 2010 7:29 PM
  • Hi,

    We are having exactly the same problem. Did you find out what caused this?

    Regards,

    Philippe

    Wednesday, November 17, 2010 8:36 AM
  • Has anyone found a solution for this?  We are having the exact same problem.  

    If you are in the Outlook Client and choose to run a report from a view for the "The selected records" or "All records on all pages in the current view" options, the user receives an error.  However the "All applicable records" option works from within Outlook and any of the three options work if the same report is run from the same view in the Web Client.

    Very frustrating.

     

    Thanks!

    - Jon

    Monday, November 22, 2010 11:32 PM
  • Hi All,

    Curious if you happened to find a fix for this issue? We've stumbled across the same issue with user on Outlook 2010, CRM Online 4.0.

    If you found a solution or workaround, please advise.

    Thanks!

    Marty

    Friday, February 4, 2011 2:21 PM