Page 1 of 1

Reload dayfile errors?

Posted: Tue 23 Apr 2024 1:15 pm
by LindaFNM
I’m trying to reload the dayfile and am getting the following errors:

2024-04-23 07:05:57 - LoadDayFile: Too many errors reading data/dayfile.txt - aborting load of daily data
2024-04-23 07:05:57 - LoadDayFile: Error at line 136 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 135 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 134 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 133 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 132 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 131 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 130 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 128 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 123 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4849 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 120 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4838 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 109 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 108 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4830 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 101 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 95 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4820 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 93 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4811 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 84 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4783 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 58 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 46 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4768 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 43 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 4761 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:57 - LoadDayFile: Error at line 37 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.
2024-04-23 07:05:56 - LoadDayFile: Error at line 4721 of data/dayfile.txt : Collection was modified; enumeration operation may not execute.

I can’t see anything obviously wrong in the file, can anyone advise please? Thanks very much

Re: Reload dayfile errors?

Posted: Tue 23 Apr 2024 1:23 pm
by PaulMy
Hi,
If you attach a copy more eyes can have a look :)

Enjoy,
Paul

Re: Reload dayfile errors?

Posted: Tue 23 Apr 2024 4:30 pm
by LindaFNM
Please see attached.

I've tried opening it in Notepad ++ and LibreOffice Calc, and the file views OK in the CMX editor.

Re: Reload dayfile errors?

Posted: Tue 23 Apr 2024 5:09 pm
by HansR
I ran it in CUtils and dayfile loaded OK.
I reloaded the dayfile in my CMX => no problems.

It seems the issue is not in dayfile, something else is problematic.

Do you observe other anomalies?

Re: Reload dayfile errors?

Posted: Tue 23 Apr 2024 5:21 pm
by mcrossley
It looks like multiple reloads are happening at the same time. Note the line numbers are mixed up.

Please try it again, but just make one request (do not double click the button).

Meanwhile I will add a bug that the code needs to be made thread safe.

Re: Reload dayfile errors?

Posted: Wed 24 Apr 2024 6:10 am
by LindaFNM
Thanks very much for your all of your help.

I tried again this morning and it was fine. I think the problem is that I’m using an iPad, when I tap the upload button nothing seems to happen, I wait a while then try again so I guess that’s what’s causing the problem. I need to wait for a while before becoming impatient :oops: !