これはパズルです!
CRM 2011 の見積もりを注文に変換すると、注文レコードを保存して通常どおり使用できます。ただし、保存ボタンをクリックして新しい注文を作成しようとすると、「エラーが発生しました」というダイアログが表示され、レコードの保存に失敗します。CRM トレースは以下にありますが、問題が何であるかを理解することができます。'new_customtestingentity' というエンティティを作成したことさえありません。
私が試したこと:-a)ステータスコードフィールドの名前を元の名前に変更します(以前に変更しました)b)フォームのonsave javascriptイベントを無効にしますc)デフォルトのリボンメニューを再度有効にします(未使用のバスソンをいくつか非表示にしました)以前)
痕跡:
Crm Exception: Message: The entity with a name = 'new_customtestingentity' was not found in the MetadataCache., ErrorCode: -2147217150 [2013-06-17 10:09:36.345] プロセス: w3wp |Organization: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) at Microsoft.Crm.Application.Platform.AttributeCollection .CreateOptionSetValueFromValue (文字列名、オブジェクト値、AttributeType attributeType、文字列 entityLogicalName) Microsoft.Crm.Application.Platform.AttributeCollection.SetEntityProperty (エンティティ エンティティ、文字列名、文字列 childAttributeName、オブジェクト parentProperty、AttributeMetadata attributeMetadata、オブジェクト値、IOrganizationContext コンテキスト) でMicrosoft.Crm.Application.Platform.AttributeCollection.Insert (文字列名、オブジェクト値、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 (ブール値 includeStagesBeforeAsyncPoint、ブール値 includeStagesAfterAsyncPoint)Microsoft.Crm.Application.Forms.EndUserForm.Initialize (エンティティ エンティティ) の RetrieveParametersForEventDefault() Microsoft.Crm.Application.Forms.CustomizableForm.Execute (エンティティ エンティティ、FormDescriptor fd) の Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() の .ConfigureFormHandler() 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)Microsoft.Crm.Application.Forms.EndUserForm.Initialize (エンティティ エンティティ) の RetrieveParametersForEventDefault() Microsoft.Crm.Application.Forms.CustomizableForm.Execute (エンティティ エンティティ、FormDescriptor fd) の Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler Microsoft.Crm.Application.Components.PageHandlers.RecordPageHandler.ConfigureFormWrapper() の .ConfigureFormHandler() 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)Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler() の Crm.Application.Forms.CustomizableForm.Execute (エンティティ エンティティ、FormDescriptor fd) 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)Microsoft.Crm.Application.Components.PageHandlers.SalesorderRecordPageHandler.ConfigureFormHandler() の Crm.Application.Forms.CustomizableForm.Execute (エンティティ エンティティ、FormDescriptor fd) 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)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' の型の例外がスローされました。 .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 ステップ、ブール値 & completedSynchronously)
[2013-06-17 10:09:36.345] プロセス: w3wp |組織:00000000-0000-0000-0000-000000000000 |スレッド: 33 |カテゴリ: プラットフォーム |ユーザー: 00000000-0000-0000-0000-0000000 |レベル:00000エラー |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-0000000 |レベル:00000エラー |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 の状態. System.Web.UI.Page.ProcessRequest(HttpContext コンテキスト) の System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() の System.Web.HttpApplication.ExecuteStep(IExecutionStep ステップ、ブール値& completedSynchronously) [2013-06-17 10:09:36.345] プロセス: w3wp |組織:00000000-0000-0000-0000-000000000000 |スレッド: 33 |カテゴリ: プラットフォーム |ユーザー: 00000000-0000-0000-0000-0000000 |0レベル: エラー |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 予期しない: 障害はありませんか? Boolean& completedSynchronously) [2013-06-17 10:09:36.345] プロセス: w3wp |組織:00000000-0000-0000-0000-000000000000 |スレッド: 33 |カテゴリ: プラットフォーム |ユーザー: 00000000-0000-0000-0000-00000 |レベル: エラー |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 予期しない: 障害はありませんか? Boolean& completedSynchronously) [2013-06-17 10:09:36.345] プロセス: w3wp |組織:00000000-0000-0000-0000-000000000000 |スレッド: 33 |カテゴリ: プラットフォーム |ユーザー: 00000000-0000-0000-0000-00000 |レベル: エラー |ReqId: 5cb5f3d1-1f7d-437f-828e-94676987a567 | ExceptionConverter.ConvertToFault ilOffset = 0x69 予期しない: 障害はありませんか?