1

这是一个谜题!

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

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

痕迹:

Crm 异常:消息:在 MetadataCache 中找不到名称为“new_customtestingentity”的实体。错误代码:-2147217150 [2013-06-17 10:09:36.345] 处理:w3wp |组织:d8e7913e-0f93-45b7- ad9d-6a48d10b0de3 |线程:33 |类别:应用程序|用户:00000000-0000-0000-0000-000000000000 |级别:错误|ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ErrorInformation.LogError ilOffset = 0x17

>MSCRM 错误报告:

错误:引发了“System.Web.HttpUnhandledException”类型的异常。

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

错误详细信息:引发了“System.Web.HttpUnhandledException”类型的异常。

源文件:不可用

行号:不可用

堆栈跟踪信息:[ArgumentException:此实体的无效状态:salesorder:0 参数名称:状态] 在 Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state) 在 Microsoft.Crm.Application.Platform.AttributeCollection .CreateOptionSetValueFromValue(String name, Object value, AttributeType attributeType, String entityLogicalName) at Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty(Entity entity, String name, String childAttributeName, Object parentProperty, AttributeMetadata attributeMetadata, Object value, IOrganizationContext context) at Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement) 在 Microsoft.Crm 中的 Microsoft.Crm.Application.Platform.AttributeCollection.Insert(String name, Object value, Boolean throwIfKeyExists)。Application.Forms.EndUserForm.RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, 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)RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, 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)RetrieveParametersForEventDefault() 在 Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) 在 Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, 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)Crm.Application.Forms.CustomizableForm.Execute(Entity entity, 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(布尔型 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint)Crm.Application.Forms.CustomizableForm.Execute(Entity entity, 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(布尔型 includeStagesBeforeAsyncPoint,布尔型 includeStagesAfterAsyncPoint)Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI。 System.Web.UI.Page.ProcessRequestMain 处的 Control.PreRenderRecursiveInternal()(布尔值 includeStagesBeforeAsyncPoint,布尔值 includeStagesAfterAsyncPoint)Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() 在 Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName) 在 Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e) 在 System.Web.UI。 System.Web.UI.Page.ProcessRequestMain 处的 Control.PreRenderRecursiveInternal()(布尔值 includeStagesBeforeAsyncPoint,布尔值 includeStagesAfterAsyncPoint)

[HttpUnhandledException:引发了“System.Web.HttpUnhandledException”类型的异常。] System.Web.UI.Page.HandleError(Exception e) at 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 context) 在 System.Web.HttpApplication.CallHandlerExecutionStep。 System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值&完成同步)

[2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台|用户:00000000-0000-0000-0000-000000000000 |级别:错误 |ReqId: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 |级别:错误 |ReqId: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 参数名称:Microsoft.Crm.Application.Platform.EntityProxy.ConvertStateToNumber(String entityName, String state) at Microsoft.Crm.Application.Platform.AttributeCollection 的状态. ProcessRequest() 在 System.Web.UI.Page.ProcessRequest(HttpContext context) 在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep 步骤,布尔值&同步完成)[2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-0000-00000-00000000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?Boolean& completedSynchronously) [2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-000000000-00000-00000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?Boolean& completedSynchronously) [2013-06-17 10:09:36.345] 进程:w3wp |组织:00000000-0000-0000-0000-000000000000 |线程:33 |类别:平台 |用户:00000000-0000-000000000-00000-00000 |级别:错误 |ReqId:5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 UNEXPECTED:没有错误?

4

1 回答 1

1

解决了!

在调试一些状态选项时,我已将字段状态添加到 CRM 主窗体。不知何故,这导致一切都因储蓄而崩溃。

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

于 2013-06-18T06:21:18.653 回答