Meilleur auteur de réponses
Re : template CRMforNonprofitOrganization

Question
-
Bonsoir,
J'ai installé le template CRMforNonprofitOrganization sur du onpremise et online , et commencé la traduction,
mais me suis aperçu d'un bug en testant : Quand on saisi des valeurs supérieures à 999 € dans les champs montant "cash value" des entités "Donations" et "Pledge" -> plante avec message d'erreur "Une erreur s'est produite,réessayer,....). A priori cela viens du javascript "mscorelib", quand je vire la bibliotheque du formulaire, ce problème disparait. par contre je n'ai pas le niveau pour débugger ce js. Si quelqu'un peut m'aider je tiens le fichier à dispo.
Cordialement
Philippe
ploizon
ploizon
Réponses
-
Pour remettre en forme un JS: http://jsbeautifier.org/
- Marqué comme réponse ploizon mardi 20 novembre 2012 17:39
Toutes les réponses
-
Bonjour,
Pour avancer sur ce pb , j'ai tracé et ai cette description d'erreur ci-dessous dans le log :
Quelqu'un peut t'il me l'interpréter ?
Cordialement
Philippe
# CRM Tracing Version 2.0
# LocalTime: 2012-11-20 12:50:23.522
# Categories:
# CallStackOn: No
# ComputerName: WIN-TCN0R9PVMC3
# CRMVersion: 5.0.9690.1992
# DeploymentType: OnPremise
# ScaleGroup:
# ServerRole: AppServer, AsyncService, DiscoveryService, ApiServer, HelpServer, DeploymentService, SandboxServer, DeploymentManagementTools[2012-11-20 12:50:23.522] Process: w3wp |Organization:7fa3bc59-8d32-e211-9155-080027cd1fdc |Thread: 31 |Category: Application |User: 00000000-0000-0000-0000-000000000000 |Level: Error | ErrorInformation.LogError
>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://win-tcn0r9pvmc3/ASSOCIATION/userdefined/edit.aspx?etc=10001&pagemode=iframe&preloadcache=1353412209967
Stack Trace Info: [FormatException: Input string was not in a correct format.]
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at Microsoft.Crm.Application.Platform.AttributeCollection.CreateValueFromMoneyPropertyValue(String name, Object value)
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.AttributeCollection.Insert(String name, Object value, Boolean throwIfKeyExists)
at Microsoft.Crm.Application.Platform.EntityProxy.SetData(XmlNode entityElement)
at Microsoft.Crm.Application.Forms.EndUserForm.RetrieveParametersForEventDefault()
at Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity)
at Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity, FormDescriptor fd)
at Microsoft.Crm.Application.Components.Utility.GenericEventProcessor.RaiseEvent(String eventName)
at Microsoft.Crm.Application.Controls.PageManager.OnPreRender(EventArgs e)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)[HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown.]
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)ploizon
-
Peut être que les javascript de la solution sont spécifique aux formats anglais et que la saisie plante...
Mais bon, il faudrait analyser les scripts ce qui peut prendre du temps
-
Merci tanguy,
je vais essayer de "rentrer" et m'autoformer au JS .
connaissez vous un éditeur de js qui remet en "forme" le fichier script. Quand je récupère le fichier mscorelib.js a partir de la solution, j'ai un bloc dsur une seule ligne, ce qui complique l'affaire :)
j'ai déposé un post sur la communauté US pour voir si quelqu'un d'autre à rencontré ce problème.
Cordialement
Philippe
ploizon
-
Pour remettre en forme un JS: http://jsbeautifier.org/
- Marqué comme réponse ploizon mardi 20 novembre 2012 17:39
-
Bonsoir Tanguy,
- c'était bien un problème de format : les séparateurs de groupe de milliers était spécifiés avec une "," au lieu d'un espace pour le format français. Je n'ai pas saisi exactement de que faisait cette fonction ( voir en bas du post) mais je l'ai remplacer dans 3 occurences et c'est ok.
l'outil http://jsbeautifier.org/ bien pratique , je m'en suis servi pour repérer les focntions, mais par contre si je ré-injecte le script remise en forme ( sans modif) MS CRM me jette, je pense qu'il doit rajouter des caractères de mise en forme (tab,CR,..) qui ne plaisent pas.
merci encore,
Cdlt
Philippe
ss.CultureInfo.registerClass("CultureInfo");
ss.CultureInfo.InvariantCulture = new ss.CultureInfo("en-US", {
naNSymbol: "NaN",
negativeSign: "-",
positiveSign: "+",
negativeInfinityText: "-Infinity",
positiveInfinityText: "Infinity",
percentSymbol: "%",
percentGroupSizes: [3],
percentDecimalDigits: 2,
percentDecimalSeparator: ".",
percentGroupSeparator: ",",
percentPositivePattern: "{0} %",
percentNegativePattern: "-{0} %",
currencySymbol: "$",
currencyGroupSizes: [3],
currencyDecimalDigits: 2,
currencyDecimalSeparator: ".",
currencyGroupSeparator: ",",
currencyNegativePattern: "(${0})",
currencyPositivePattern: "${0}",
numberGroupSizes: [3],
numberDecimalDigits: 2,
numberDecimalSeparator: ".",
numberGroupSeparator: ","ploizon