CRM 2011 - E-Mail Template Fehler beim Versuch, Übersicht zu öffnen
-
2012년 4월 30일 월요일 오후 5:28
Hallo zusammen,
beim Öffnen der E-Mail Template Übersicht tritt ein Fehler auf, der relativ nichtssagend ist (Error has occured...). Alle anderen Template-Typen funktionieren.
Im Error-Trace habe ich folgenden Abschnitt gefunden, der mir aber leider auch nicht weiterhilft:
MSCRM Error Report:
--------------------------------------------------------------------------------------------------------
Error: Exception of type 'System.Web.HttpUnhandledException' was thrown.Error Message: 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.
Source File: Not available
Line Number: Not available
Request URL: http://crm/myorg/tools/emailtemplatemanager/home.aspx
Stack Trace Info: [NullReferenceException: Object reference not set to an instance of an object.]
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at Microsoft.Crm.Sdk.Query.ConditionExpression..ctor(String attributeName, ConditionOperator conditionOperator, Array values)
at Microsoft.Crm.ApplicationQuery.RetrieveEmailTemplateByObjectCommand.DecorateQuery()
at Microsoft.Crm.ApplicationQuery.BuildQuery()
at Microsoft.Crm.ApplicationQuery.GetViewData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadQueryData()
at Microsoft.Crm.Application.Platform.Grid.GridDataProviderQueryBuilder.LoadData()
at Microsoft.Crm.Application.Controls.GridUIProvider.PrepareGridData()
at Microsoft.Crm.Application.Controls.GridUIProvider.Render(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderData(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.RenderInnerHtml(HtmlTextWriter output)
at Microsoft.Crm.Application.Components.UI.Grid.DataGrid.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Kann mir jemand weiterhelfen?
Danke & Gruß
Rolf
- 편집됨 rolf.weiglein 2012년 4월 30일 월요일 오후 5:29
모든 응답
-
2012년 5월 1일 화요일 오전 7:03중재자
Hallo Rolf,
das Trace ist da ja nicht wirklich aussagekräftig, wenn das alle Fehlermeldungen waren.
Habt ihr irgend etwas an der Entitä Email geändert?
Welches RU habt ihr eingespielt?
Lässt sich die Übersicht nur auf einem Client nicht mehr öffnen oder auf allen Clients?
Viele Grüße
Michael Sulz
MVP für Microsoft Dynamics CRM
Blog
Website XING LinkedIn Facebook Twitter -
2012년 5월 2일 수요일 오전 7:15
Hallo Rolf!
Sind CRM-Systemdateien (z.B. main.aspx) manuell editiert worden?
Lässt sich die Url http://crm/myorg/tools/emailtemplatemanager/home.aspx im Browser öffnen?Ich hoffe das bringt weiter. Andreas(a)Donaubauer.com www.crmfaq.de
-
2012년 5월 2일 수요일 오후 4:37
Hallo Michael,
ja leider gibt das Trace nicht mehr her.
Anscheinend ist das Problem bei der Migration von CRM 4 nach 2011 entstanden, da die Email-Templates in CRM 4 noch funktionieren.
Aktuell haben wir das UR 2 installiert, möglicherweise hilft ein Update auf ein höheres UR.
Betroffen sind alles Clients.
Gruß
Rolf
- 편집됨 rolf.weiglein 2012년 5월 2일 수요일 오후 4:52
-
2012년 5월 2일 수요일 오후 4:42
Hallo Andreas,
die Systemdateien sind unangetastet.
Das Problem tritt sowohl beim Aufruf von http://crm/myorg/tools/emailtemplatemanager/home.aspx alsauch http://crm/myorg/tools/templates/templates.aspx?pagemode=iframe&pid=03&web=true auf.
Gruß
Rolf -
2012년 5월 3일 목요일 오전 7:45
Hallo Rolf,
Die obige Fehlermeldung ist aber die vom Event-Log vom Server, oder? Hast du beim Öffnen den CRM-Trace auch mal mitlaufen lassen - vielleicht / hoffentlich kommt hier eine bessere Fehlermeldung!?
Liebe Grüße,
Andreas
Andreas Buchinger
Microsoft Dynamics Certified Technology Specialist
MCPD: SharePoint Developer 2010 -
2012년 5월 3일 목요일 오후 6:00
Hallo zusammen,
neue Erkenntnis: In der Entität Email-Template gibt es 2 Default-Views. Der 2. Default-View macht lt. Trace anscheinend Probleme, läßt sich aber weder deaktivieren, löschen noch umswitchen. Was seltsam ist, dass es im Altsystem diesen 2. Problem-View gar nicht gab.
ApplicationQuery: Building API Command. View Id : {B8D2FA25-B779-4F60-BBC9-89A02F81C3CC}. QueryAPI : CRMEmailTemplate.RetrieveByObject.
[2012-05-03 14:16:48.052] Process: w3wp |Organization:209ef986-3174-e111-87a4-00215aa56874 |Thread: 35 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogErrorDas läuft wohl auf ein Update des IsDefault-Flags per SDK (falls möglich) oder per DB-Update (SavedQueryBase) hinaus?
Gruß
Rolf
-
2012년 5월 3일 목요일 오후 6:11
Das Update per SDK (myQueryEntity["isdefault"] = false;) hat funktioniert und das Problem behoben.
Vielen Dank.
- 답변으로 표시됨 rolf.weiglein 2012년 5월 3일 목요일 오후 6:11
- 편집됨 rolf.weiglein 2012년 5월 3일 목요일 오후 6:13
-
2012년 5월 4일 금요일 오후 2:53
Hallo Rolf,
die E-Mail-Template-Übersicht kann geöffnet, E-Mail erstellt werden und die Vorlage dann in einer E-Mail-Aktivität unter "Vorlage einfügen" als Template hinzugefügt werden.
Gruß Gerhard
-
2013년 3월 27일 수요일 오후 2:37
Danke Tipp von Rolf war Gold wert. Identisches Problem bei mir behoben.
SQL Statement in der OrganisationsDB:
SELECT TOP (200) SavedQueryId, Name, OrganizationId, Description, QueryType, IsDefault, ReturnedTypeCode, QueryAppUsage, IsUserDefined, FetchXml, IsCustomizable, IsQuickFindQuery, ColumnSetXml, LayoutXml, QueryAPI, CreatedBy, CreatedOn, ModifiedBy, ModifiedOn, VersionNumber, IsPrivate, SavedQueryIdUnique, SupportingSolutionId, CreatedOnBehalfBy, OverwriteTime, IsManaged, AdvancedGroupBy, ConditionalFormatting, CanBeDeleted, StatusCode, ComponentState, OrganizationTabOrder, SolutionId, ModifiedOnBehalfBy, StateCode
FROM SavedQueryBase
WHERE (SavedQueryId = 'B8D2FA25-B779-4F60-BBC9-89A02F81C3CC')Ergebnis 2 Zeilen:
Die Zeile ohne QueryType den Wert IsDefault auf False setzen