保存订单时的CRM 2011跟踪错误 - 在MetadataCache中找不到名称为'new_customtestingent'的实体

时间:2013-06-17 06:06:53

标签: crm orders

这是一个难题!

当我将CRM 2011报价转换为订单时,我可以保存订单记录并正常使用它。但是,当我单击“保存”按钮时尝试创建新订单时,会出现一个“发生错误”的对话框。并且记录无法保存。 CRM跟踪如下,但我可以理解问题是什么 - 我甚至从未创建过一个名为“new_customtestingent”' new_customtestingent'

我尝试过的事情: - a)将状态代码字段重命名为原始名称(我之前已更改过) b)禁用表单中的onsave javascript事件 c)重新启用默认功能区菜单(我之前隐藏了一些未使用的bussons)

跟踪:

  

Crm异常:消息:具有名称=' new_customtestingent'的实体在MetadataCache中找不到。,ErrorCode:-2147217150   [2013-06-17 10:09:36.345]流程:w3wp |组织:d8e7913e-0f93-45b7-ad9d-6a48d10b0de3 |主题:33 |类别:应用|用户:00000000-0000-0000-0000-000000000000 |级别:错误|要求:5cb5f3d1-1f7d-437f-828e-94676987a567 | ErrorInformation.LogError ilOffset = 0x17

     

> MSCRM错误报告:

错误:类型' System.Web.HttpUnhandledException'的异常被扔了。

错误消息:执行当前Web请求期间发生未处理的异常。请查看堆栈跟踪,以获取有关错误及其在代码中的起源位置的更多信息。

错误详细信息:类型为' System.Web.HttpUnhandledException'被扔了。

源文件:不可用

行号:不可用

堆栈跟踪信息:[ArgumentException:此实体的状态无效:salesorder:0 参数名称:state]    at Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName,String state)    at Microsoft.Crm.Application.Platform.AttributeCollection.CreateOptionSetValueFromValue(String name,Object value,AttributeType attributeType,String entityLogicalName)    at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(实体实体,字符串名称,字符串childAttributeName,Object parentProperty,AttributeMetadata attributeMetadata,Object value,IOrganizationContext context)    在Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name,Object value,Boolean throwIfKeyExists)    在Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement)    在Microsoft.Crm.Application.Forms.EndUserForm.RetrieveParametersForEventDefault()    在Microsoft.Crm.Application.Forms.EndUserForm.Initialize(实体实体)    在Microsoft.Crm.Application.Forms.CustomizableForm.Execute(实体实体,FormDescriptor fd)    在Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler()    在Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper()    在Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)    在Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)    在System.Web.UI.Control.PreRenderRecursiveInternal()    在System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)

[HttpUnhandledException:类型异常' System.Web.HttpUnhandledException'被扔了。]    在System.Web.UI.Page.HandleError(例外e)    在System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)    在System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)    在System.Web.UI.Page.ProcessRequest()    在System.Web.UI.Page.ProcessRequest(HttpContext上下文)    在System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()    在System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)

[2013-06-17 10:09:36.345]流程:w3wp |组织:00000000-0000-0000-0000-000000000000 |主题:33 |分类:平台|用户:00000000-0000-0000-0000-000000000000 |等级:错误|要求:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x57

  

意外:没有错?   [2013-06-17 10:09:36.345]进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:错误|要求:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertMessageAndErrorCode ilOffset = 0x23B   System.Web.HttpUnhandledException:Microsoft Dynamics CRM遇到错误。管理员或支持的参考编号:#5F67091F:System.Web.HttpUnhandledException(0x80004005):类型' System.Web.HttpUnhandledException'的异常。被扔了。 ---> System.ArgumentException:此实体的状态无效:salesorder:0   参数名称:state     at Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName,String state)     at Microsoft.Crm.Application.Platform.AttributeCollection.CreateOptionSetValueFromValue(String name,Object value,AttributeType attributeType,String entityLogicalName)     at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(实体实体,字符串名称,字符串childAttributeName,Object parentProperty,AttributeMetadata attributeMetadata,Object value,IOrganizationContext context)     在Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name,Object value,Boolean throwIfKeyExists)     在Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement)     在Microsoft.Crm.Application.Forms.EndUserForm.RetrieveParametersForEventDefault()     在Microsoft.Crm.Application.Forms.EndUserForm.Initialize(实体实体)     在Microsoft.Crm.Application.Forms.CustomizableForm.Execute(实体实体,FormDescriptor fd)     在Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler()     在Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper()     在Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)     在Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)     在System.Web.UI.Control.PreRenderRecursiveInternal()     在System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)     在System.Web.UI.Page.HandleError(例外e)     在System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)     在System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint,Boolean includeStagesAfterAsyncPoint)     在System.Web.UI.Page.ProcessRequest()     在System.Web.UI.Page.ProcessRequest(HttpContext上下文)     在System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()     在System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously)   [2013-06-17 10:09:36.345]进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:错误|要求:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69   意外:没有错?

1 个答案:

答案 0 :(得分:1)

解决!

调试一些状态选项时,我已将字段状态添加到CRM主窗体。不知何故,这导致一切都在挽救时黯然失色。

删除字段后(默认情况下它仍然显示在页脚中)可以毫无问题地保存。