locked
Error opening attachment CRM 2013 / CrmKey With ID <GUID> does not exist RRS feed

  • Question

  • Out of the blue users cannot open Notes.

    They get error stating insufficient privileges but some of them have systemadministrator role.

    It must have something to do with CRM IFD I guess. 

    This is the error in servertrace:

    >SELECT  Id, [CreatedOn], [Enabled], [KeyType], [ScaleGroupId]  FROM [CrmKey]   WHERE ((([Id] = '2ddef6c9-a00a-e511-80bf-00155d588202')) ) 
    [2015-07-14 10:07:10.272] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   34 |Category: Platform.Sql |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: fea9ea41-bb79-499f-bd10-4db790767ee1 | CrmDbConnection.InternalExecuteReader  ilOffset = 0x135
    >Query execution time: 0.0 seconds; database: MSCRM_CONFIG; Server:tl-ap02; command: SELECT  Id, [CreatedOn], [Enabled], [KeyType], [ScaleGroupId]  FROM [CrmKey]   WHERE ((([Id] = '2ddef6c9-a00a-e511-80bf-00155d588202')) ) .
    [2015-07-14 10:07:10.272] Process: w3wp |Organization:00000000-0000-0000-0000-000000000000 |Thread:   34 |Category: Exception |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: fea9ea41-bb79-499f-bd10-4db790767ee1 | CrmException..ctor  ilOffset = 0x7
    at CrmException..ctor(String message, Exception innerException, Int32 errorCode, Boolean isFlowControlException)  ilOffset = 0x7
    at CrmException..ctor(String message, Int32 errorCode)  ilOffset = 0x5
    at CrmKey.LoadExistingKey(Guid crmKeyId, LocatorServiceContext locatorServiceContext)  ilOffset = 0xB9
    at CrmKeyService.GetKeyFromHash(Byte[] hashValue)  ilOffset = 0x5E
    at WrpcContext.ValidateToken()  ilOffset = 0x36D
    at AppPage.ValidateWrpcContext()  ilOffset = 0xB
    at AppPage.OnInit(EventArgs e)  ilOffset = 0x93
    at Control.InitRecursive(Control namingContainer)  ilOffset = 0xFF
    at Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x2CD
    at Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  ilOffset = 0x3C
    at Page.ProcessRequest()  ilOffset = 0x14
    at Page.ProcessRequest(HttpContext context)  ilOffset = 0x33
    at CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  ilOffset = 0x18D
    at HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  ilOffset = 0x15
    at ApplicationStepManager.ResumeSteps(Exception error)  ilOffset = 0x10A
    at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)  ilOffset = 0x5C
    at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)  ilOffset = 0x16A
    at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)  ilOffset = 0x4B
    >Crm Exception: Message: CrmKey With Id = 2ddef6c9-a00a-e511-80bf-00155d588202 Does Not Exist, ErrorCode: -2147220969
    [2015-07-14 10:07:10.272] Process: w3wp |Organization:82d1a79a-e458-4650-a180-3746fa4778f3 |Thread:   34 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error |ReqId: fea9ea41-bb79-499f-bd10-4db790767ee1 | ErrorInformation.LogError  ilOffset = 0x17
    >MSCRM Error Report:
    --------------------------------------------------------------------------------------------------------
    Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.

    Error Number: 0x80040217

    Error Message: CrmKey With Id = 2ddef6c9-a00a-e511-80bf-00155d588202 Does Not Exist

    Error Details: CrmKey With Id = 2ddef6c9-a00a-e511-80bf-00155d588202 Does Not Exist

    Source File: Not available

    Line Number: Not available

    Request URL: https://crm.*******.***/Activities/Attachment/download.aspx?AttachmentType=5&IsNotesTabAttachment=1&AttachmentId=058b9c9a-6c0e-e511-80bf-00155d588202&CRMWRPCToken=yfbeLQqgEeWAvwAVXViCAkdqCNcBiruxJKF6FdjMwBshrf4jBW96rpf8E26mzmvm&CRMWRPCTokenTimeStamp=635702174259689891

    Stack Trace Info: [CrmConfigObjectNotFoundException: CrmKey With Id = 2ddef6c9-a00a-e511-80bf-00155d588202 Does Not Exist]
       at Microsoft.Crm.CrmKey.LoadExistingKey(Guid crmKeyId, LocatorServiceContext locatorServiceContext)
       at Microsoft.Crm.CrmKeyService.GetKeyFromHash(Byte[] hashValue)
       at Microsoft.Crm.Application.Security.WrpcContext.ValidateToken()
       at Microsoft.Crm.Application.Controls.AppPage.ValidateWrpcContext()
       at Microsoft.Crm.Application.Controls.AppPage.OnInit(EventArgs e)
       at System.Web.UI.Control.InitRecursive(Control namingContainer)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    [HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
       at System.Web.UI.Page.HandleError(Exception e)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
       at System.Web.UI.Page.ProcessRequest()
       at System.Web.UI.Page.ProcessRequest(HttpContext context)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Thursday, July 16, 2015 6:55 AM

Answers

All replies