Hi all,
after we have deleted some old attributes from the account entity the Audit History stops working for some records.
We have already installed UR10 (UR8 was installed before), deactivated/actived Auditing but with no success.
The following error is shown: Error in query builder. The specified attribute does not exists (translated from German error msg)
In the tracelog the we found:
............
at ApplicationStepManager.ResumeSteps(Exception error) ilOffset = 0x10E
at HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) ilOffset = 0x5C
at HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) ilOffset = 0xFC
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) ilOffset = 0x2C
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>Crm Exception: Message: Attribute Metadata could not be retrieved from audit log, ErrorCode: -2147217149, InnerException: Microsoft.Crm.Metadata.AttributeMetadataNotFoundException: Attribute Metadata could not be retrieved from audit log
at Microsoft.Crm.ObjectModel.AuditService.GetAttributeLogicalNameFromAudit(Int32 objectTypeCode, Int32 columnNumber, ExecutionContext context)
at Microsoft.Crm.ObjectModel.AuditService.GetAttributeMetadata(Int32 objectTypeCode, Int32 columnNumber, ExecutionContext c
.............
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) ilOffset = 0x2C
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>MessageProcessor fail to process message 'RetrieveRecordChangeHistory' for 'audit'.
.................
at HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) ilOffset = 0x2C
at ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) ilOffset = 0x4B
>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #5F7546E5: System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.Crm.CrmException: Attribute Metadata could not be retrieved from audit log
> at Microsoft.Crm.Application.Platform.ServiceCommands.PlatformCommand.XrmExecuteInternal()
Thanks
Markus