Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Web tag error

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
Benji60
Posts: 67
Joined: Mon 11 Oct 2021 12:38 pm
Weather Station: HP1000 Froggit Pro
Operating System: Windows 10

Web tag error

Post by Benji60 »

Hello,
I just noticed this very recurrent webtag error:

I never modified this file from memory and this error seems to be quite recent if I'm not mistaken:

Code: Select all

2022-08-12 15:12:32.056 Web tag error in file: 
2022-08-12 15:12:32.056 token=<#recordsbegandate format="%M">
2022-08-12 15:12:32.056 Position in file (character)=10
2022-08-12 15:12:32.056 Exception: i=0 len=85
2022-08-12 15:12:32.056 inputText.Length=85
2022-08-12 15:12:32.057 System.FormatException: Format_UnknownDateTimeWord
  at System.DateTimeParse.Parse (System.ReadOnlySpan`1[T] s, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles styles) [0x0002a] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at System.DateTime.Parse (System.String s) [0x00015] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at CumulusMX.WebTags.Tagrecordsbegandate (System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x0000b] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.WebTags.GetWebTagText (System.String tagString, System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x00025] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.Cumulus.TokenParserOnToken (System.String strToken, System.String& strReplacement) [0x00064] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.TokenParser.Parse3 () [0x000a3] in <e638f7d124564cabb4e890f39313adb2>:0 
2022-08-12 15:12:32.057 ** The output file will contain an error message starting "**Web tag error"
2022-08-12 15:12:32.058 Web tag error in file: 
2022-08-12 15:12:32.058 token=<#recordsbegandate format="yyyy">
2022-08-12 15:12:32.058 Position in file (character)=51
2022-08-12 15:12:32.058 Exception: i=41 len=85
2022-08-12 15:12:32.058 inputText.Length=85
2022-08-12 15:12:32.059 System.FormatException: Format_UnknownDateTimeWord
  at System.DateTimeParse.Parse (System.ReadOnlySpan`1[T] s, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles styles) [0x0002a] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at System.DateTime.Parse (System.String s) [0x00015] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at CumulusMX.WebTags.Tagrecordsbegandate (System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x0000b] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.WebTags.GetWebTagText (System.String tagString, System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x00025] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.Cumulus.TokenParserOnToken (System.String strToken, System.String& strReplacement) [0x00064] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.TokenParser.Parse3 () [0x000a3] in <e638f7d124564cabb4e890f39313adb2>:0 
2022-08-12 15:12:32.059 ** The output file will contain an error message starting "**Web tag error"
2022-08-12 15:15:00.414 DoLogFile: Writing log entry for 12/08/2022 15:15:00
2022-08-12 15:15:00.415 DoLogFile: log entry for 12/08/2022 15:15:00 written
2022-08-12 15:15:00.416 Writing today.ini, LastUpdateTime = 12/08/2022 15:15:00 raindaystart = 239 rain counter = 239
2022-08-12 15:20:00.474 DoLogFile: Writing log entry for 12/08/2022 15:20:00
2022-08-12 15:20:00.475 DoLogFile: log entry for 12/08/2022 15:20:00 written
2022-08-12 15:20:00.476 Writing today.ini, LastUpdateTime = 12/08/2022 15:20:00 raindaystart = 239 rain counter = 239
2022-08-12 15:20:00.499 Web tag error in file: web/websitedataT.json
2022-08-12 15:20:00.499 token=<#recordsbegandate>
2022-08-12 15:20:00.499 Position in file (character)=338
2022-08-12 15:20:00.499 Exception: i=315 len=31068
2022-08-12 15:20:00.499 inputText.Length=31068
2022-08-12 15:20:00.500 System.FormatException: Format_UnknownDateTimeWord
  at System.DateTimeParse.Parse (System.ReadOnlySpan`1[T] s, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles styles) [0x0002a] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at System.DateTime.Parse (System.String s) [0x00015] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at CumulusMX.WebTags.Tagrecordsbegandate (System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x0000b] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.WebTags.GetWebTagText (System.String tagString, System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x00025] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.Cumulus.TokenParserOnToken (System.String strToken, System.String& strReplacement) [0x00064] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.TokenParser.Parse3 () [0x000a3] in <e638f7d124564cabb4e890f39313adb2>:0 
2022-08-12 15:20:00.500 ** The output file will contain an error message starting "**Web tag error"
2022-08-12 15:20:00.500 Web tag error in file: web/websitedataT.json
2022-08-12 15:20:00.500 token=<#recordsbegandate format=yyyy-MM-dd>
2022-08-12 15:20:00.500 Position in file (character)=383
2022-08-12 15:20:00.500 Exception: i=357 len=31068
2022-08-12 15:20:00.500 inputText.Length=31068
2022-08-12 15:20:00.500 System.FormatException: Format_UnknownDateTimeWord
  at System.DateTimeParse.Parse (System.ReadOnlySpan`1[T] s, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles styles) [0x0002a] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at System.DateTime.Parse (System.String s) [0x00015] in <162bccb5b7ae4c18b9c0cff8fdc3dfbc>:0 
  at CumulusMX.WebTags.Tagrecordsbegandate (System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x0000b] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.WebTags.GetWebTagText (System.String tagString, System.Collections.Generic.Dictionary`2[TKey,TValue] tagParams) [0x00025] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.Cumulus.TokenParserOnToken (System.String strToken, System.String& strReplacement) [0x00064] in <e638f7d124564cabb4e890f39313adb2>:0 
  at CumulusMX.TokenParser.Parse3 () [0x000a3] in <e638f7d124564cabb4e890f39313adb2>:0 
2022-08-12 15:20:00.500 ** The output file will contain an error message starting "**Web tag error"
Thanks!
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Web tag error

Post by sfws »

Benji60 wrote: Fri 12 Aug 2022 1:32 pm this error seems to be quite recent if I'm not mistaken:
In recent MX releases there have been several changes to handling of dates. Only the developer can answer whether any of his changes might affect the ability to use <#recordsbegandate format=yyyy>. (The use of double quotation marks round that parameter value is optional).

Have you recently edited your record began date - see my screenshot at viewtopic.php?p=162868#p162868 and my referenced text at viewtopic.php?p=162853#p162853 - maybe Cumulus has a problem with how that date has been expressed?
User avatar
mcrossley
Posts: 12694
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Web tag error

Post by mcrossley »

I have tested various formats in the records began date web tag and they all work OK. I suspect your records began date string is badly formed/input.
Post Reply