Page 1 of 1

Web tag error <#MonthTempAvg>

Posted: Wed 01 May 2024 6:01 am
by Dador
Hi,

Today is the first day of the new month and CMXv4 reports a webtag error for <#MonthTempAvg>. The error will probably disappear tomorrow, but today the console is bombarded with an error:

Code: Select all

*** web tag error in file 'C:\CumulusMX\web\websitedataT.json' - see MXdiags file ***
MXDiags seys:

Code: Select all

2024-05-01 07:56:51.459 Web tag error in file: C:\CumulusMX\web\websitedataT.json
2024-05-01 07:56:51.459 token=<#MonthTempAvg>
2024-05-01 07:56:51.459 Position in file (character)=6466
2024-05-01 07:56:51.459 Exception: i=6447 len=35402
2024-05-01 07:56:51.459 inputText.Length=35402
2024-05-01 07:56:51.459 System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at System.Linq.Enumerable.Average[TSource,TSelector,TAccumulator,TResult](IEnumerable`1 source, Func`2 selector)
   at System.Linq.Enumerable.Average[TSource](IEnumerable`1 source, Func`2 selector)
   at CumulusMX.WebTags.TagMonthTempAvg(Dictionary`2 tagParams)
   at CumulusMX.WebTags.GetWebTagText(String tagString, Dictionary`2 tagParams)
   at CumulusMX.Cumulus.TokenParserOnToken(String strToken, String& strReplacement)
   at CumulusMX.TokenParser.Parse3()
2024-05-01 07:56:51.459 ** The output file will contain an error message starting "**Web tag error"

Re: Web tag error <#MonthTempAvg>

Posted: Wed 01 May 2024 8:08 am
by mcrossley
Oh, dear, fixed for the next build, meanwhile just remove the line from the websitedataT.json file for today and put it back tomorrow.