tfsaggregator: Exception encountered processing notification: Specified ca st is not valid.

Hi, At the time of verification with TFSaggregator2.ConsoleApp.exe

Stack Trace: at RESERVED.Script_CalcWFJS.RunScript(IWorkItemExposed self, IWor kItemRepositoryExposed store, IRuleLogger logger, IScriptLibrary Library) at Aggregator.Core.Script.DotNetScriptEngine`1.RunScript(Assembly assembly, S tring scriptName, IWorkItem self, IWorkItemRepository store) in D:\a\1\s\Aggrega tor.Core\Script\DotNetScriptEngine{TCodeDomProvider}.cs:line 153

at Aggregator.Core.Script.DotNetScriptEngine`1.Run(String scriptName, IWorkIt em workItem, IWorkItemRepository store) in D:\a\1\s\Aggregator.Core\Script\DotNe tScriptEngine{TCodeDomProvider}.cs:line 243

at Aggregator.Core.EventProcessor.ApplyRule(Rule rule, IWorkItem workItem) in D:\a\1\s\Aggregator.Core\EventProcessor.cs:line 109

at Aggregator.Core.EventProcessor.ApplyRules(IWorkItem workItem, IEnumerable` 1 rules) in D:\a\1\s\Aggregator.Core\EventProcessor.cs:line 95

at Aggregator.Core.EventProcessor.ProcessEvent(IRequestContext requestContext , INotification notification) in D:\a\1\s\Aggregator.Core\EventProcessor.cs:line 62

at Aggregator.ConsoleApp.RunCommand.Run(String[] remainingArguments) in D:\a
1\s\Aggregator.ConsoleApp\RunCommand.cs:line 120

Thanks for the help

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

That error depends on the input values: if the formula reduces to 0/0 the result is NaN that fails a guard, I will issue a patch to output a meaningful message before failing, but you have to re-think your formula. Maybe you can use a default value of 1.0 for the denominator, i.e. self.GetField("Effort", 1.0).