CRM 2011 - E-Mail Template Fehler beim Versuch, Übersicht zu öffnen

Answered CRM 2011 - E-Mail Template Fehler beim Versuch, Übersicht zu öffnen

  • lundi 30 avril 2012 17: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


Toutes les réponses

  • mardi 1 mai 2012 07:03
    Modérateur
     
     

    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

  • mercredi 2 mai 2012 07: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

  • mercredi 2 mai 2012 16: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


  • mercredi 2 mai 2012 16: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
  • jeudi 3 mai 2012 07: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

  • jeudi 3 mai 2012 18: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.LogError

    Das läuft wohl auf ein Update des IsDefault-Flags per SDK (falls möglich) oder per DB-Update (SavedQueryBase) hinaus?

    Gruß

    Rolf

  • jeudi 3 mai 2012 18:11
     
     Traitée

    Das Update per SDK (myQueryEntity["isdefault"] = false;) hat funktioniert und das Problem behoben.

    Vielen Dank.


  • vendredi 4 mai 2012 14: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

  • mercredi 27 mars 2013 14: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