Dynamics CRM 4.0에 이상한 문제가 있습니다. 사용자 지정을 개발하는 데 사용합니다.CRM 4.0 번역 레이블을 내보낼 때 처리되지 않은 예외가 발생했습니다.
레이블을 내보내려고하면 (설정 -> 사용자 정의 -> 내보내기 레이블 내보내기) 시스템에이 오류가 표시됩니다 (추적 + DevErrors가 활성화되어 있으며 모두 서버에서 이벤트 표시기와 동일하게 표시됩니다) :
Error Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Error Details:
Exception of type 'System.Web.HttpUnhandledException' was thrown.
Full Stack:
[ArgumentException: An item with the same key has already been added.]
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
at Microsoft.Crm.Metadata.LabelCollection.Add(Label label)
at Microsoft.Crm.ObjectModel.OrganizationUIService.GetSectionTabAndFieldLabels(IBusinessEntity entity, ILabelLoader labelLoader, ExecutionContext context, Dictionary`2 labels)
at Microsoft.Crm.ObjectModel.OrganizationUIService.RetrieveAllFormLabelsWithAllLanguages(Int32 objectTypeCode, ExecutionContext context)
at Microsoft.Crm.Metadata.OrganizationUIHelper.RetrieveAllFormLabelsWithAllLanguages(Int32 objectTypeCode, ExecutionContext context)
at Microsoft.Crm.Tools.ImportExportPublish.FormXmlHandler.GetLocalizedLabelStringsCollection(Int32 baseLanguageCode, List`1 provisionedLanguages, Dictionary`2 locLabelCollection)
at Microsoft.Crm.Tools.ImportExportPublish.RootTranslationExportHandler.ExportLocalizedLabelStrings(Int32 baseLanguageCode, List`1 provisionedLanguages)
at Microsoft.Crm.Tools.ImportExportPublish.RootTranslationExportHandler.RunExportTranslations(Int32 baseLanguageCode, List`1 provisionedLanguages)
분명히 세계에서 아무도 내가 무엇을 시도했다이 문제를 (내가 2 일 동안 주위에 인터넷 검색을 봤는데) ...
없었습니다 나는 어떤을 위해 MetadataSchema.LocalizedLabels
을 확인 괴상한, 나는 그것을 Attribute
와에 합류 시키려고 노력했다. 그것은 가치가 아무것도 있다면 367,는 최신
... 거의 LinqPad 내가 노력하고 도랑을 쿼리의 엄청난 금액에서 폭발했다, (... 예외에 대한 키 중복 불평 때문에) 속은 항목을 확인 롤업은이어야합니다.