[GH-ISSUE #3989] [Bug]: Schedule fatal error #50805

Closed
opened 2026-04-30 16:23:47 -05:00 by GiteaMirror · 6 comments
Owner

Originally created by @ArmandoAmmar on GitHub (Dec 15, 2024).
Original GitHub issue: https://github.com/actualbudget/actual/issues/3989

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

I tried to create a Schedule to get all month days to see if I receive the correct amount of money, but when I tried this, i got a error for schedule, and this error blocked me to use the system.

TypeError: Cannot read properties of null (reading 'num1') at IC (app://actual/static/js/index.rtiWlUvs.js:98:43758) at g9 (app://actual/static/js/index.rtiWlUvs.js:263:90084) at kk (app://actual/static/js/index.rtiWlUvs.js:57:19539) at BM (app://actual/static/js/index.rtiWlUvs.js:59:44045) at MM (app://actual/static/js/index.rtiWlUvs.js:59:39777) at iW

Where are you hosting Actual?

Desktop App (Electron)

What browsers are you seeing the problem on?

Desktop App (Electron)

Operating System

Windows 10

Originally created by @ArmandoAmmar on GitHub (Dec 15, 2024). Original GitHub issue: https://github.com/actualbudget/actual/issues/3989 ### Verified issue does not already exist? - [X] I have searched and found no existing issue - [X] I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file) ### What happened? I tried to create a Schedule to get all month days to see if I receive the correct amount of money, but when I tried this, i got a error for schedule, and this error blocked me to use the system. TypeError: Cannot read properties of null (reading 'num1') at IC (app://actual/static/js/index.rtiWlUvs.js:98:43758) at g9 (app://actual/static/js/index.rtiWlUvs.js:263:90084) at kk (app://actual/static/js/index.rtiWlUvs.js:57:19539) at BM (app://actual/static/js/index.rtiWlUvs.js:59:44045) at MM (app://actual/static/js/index.rtiWlUvs.js:59:39777) at iW ### Where are you hosting Actual? Desktop App (Electron) ### What browsers are you seeing the problem on? Desktop App (Electron) ### Operating System Windows 10
GiteaMirror added the bug label 2026-04-30 16:23:47 -05:00
Author
Owner

@matt-fidd commented on GitHub (Dec 15, 2024):

Did you delete the amount in the rules page?

It should look something like this, if there isn't an amount you'll need to add it back
image

<!-- gh-comment-id:2544012649 --> @matt-fidd commented on GitHub (Dec 15, 2024): Did you delete the amount in the rules page? It should look something like this, if there isn't an amount you'll need to add it back ![image](https://github.com/user-attachments/assets/d3c303be-3465-452e-b84d-b47bc3c266be)
Author
Owner

@fred777 commented on GitHub (Dec 20, 2024):

Same for me! Added a couple of additional days to a monthly schedule so there way 4 days in total.

When I try to view the transaction table for the related account it crashed.

And I cannot edit the schedule anymore because it will crash the same way as soon as I want to display the schedules page.

image

Using desktop version for Archlinux, i.e. aur/actual-appimage v24.12.0-2

This is the related schedule obtained directly from v_schedules view:

_date field:

{"start":"2024-01-24","interval":1,"frequency":"monthly","patterns":[{"value":18,"type":"day"},{"value":20,"type":"day"},{"value":24,"type":"day"},{"value":26,"type":"day"}],"skipWeekend":false,"weekendSolveMode":"after","endMode":"never","endOccurrences":1,"endDate":"2024-12-20"}```

_conditions field:

[{"op":"is","field":"acct","value":"500b1d34-899f-49db-a582-71676d2ad61e","type":"id"},{"op":"is","field":"description","value":"dc898325-de24-45bd-a95f-f9d92835f220","type":"id"},{"op":"isapprox","field":"date","value":{"start":"2024-01-24","interval":1,"frequency":"monthly","patterns":[{"value":18,"type":"day"},{"value":20,"type":"day"},{"value":24,"type":"day"},{"value":26,"type":"day"}],"skipWeekend":false,"weekendSolveMode":"after","endMode":"never","endOccurrences":1,"endDate":"2024-12-20"},"type":"date"},{"op":"gt","field":"amount","value":150000,"type":"number"}]

_actions field:

[{"op":"link-schedule","field":null,"value":"c94196bf-406b-4b1b-8bef-c89adaa009f7","type":"id"}]

=> maybe the "field":null is the culprit??????

<!-- gh-comment-id:2556630460 --> @fred777 commented on GitHub (Dec 20, 2024): Same for me! Added a couple of additional days to a monthly schedule so there way 4 days in total. When I try to view the transaction table for the related account it crashed. And I cannot edit the schedule anymore because it will crash the same way as soon as I want to display the schedules page. ![image](https://github.com/user-attachments/assets/63267920-49fb-4513-a1f6-1d464684796f) Using desktop version for Archlinux, i.e. aur/actual-appimage v24.12.0-2 This is the related schedule obtained directly from `v_schedules view`: **_date field:** ``` {"start":"2024-01-24","interval":1,"frequency":"monthly","patterns":[{"value":18,"type":"day"},{"value":20,"type":"day"},{"value":24,"type":"day"},{"value":26,"type":"day"}],"skipWeekend":false,"weekendSolveMode":"after","endMode":"never","endOccurrences":1,"endDate":"2024-12-20"}``` ``` **_conditions field:** ``` [{"op":"is","field":"acct","value":"500b1d34-899f-49db-a582-71676d2ad61e","type":"id"},{"op":"is","field":"description","value":"dc898325-de24-45bd-a95f-f9d92835f220","type":"id"},{"op":"isapprox","field":"date","value":{"start":"2024-01-24","interval":1,"frequency":"monthly","patterns":[{"value":18,"type":"day"},{"value":20,"type":"day"},{"value":24,"type":"day"},{"value":26,"type":"day"}],"skipWeekend":false,"weekendSolveMode":"after","endMode":"never","endOccurrences":1,"endDate":"2024-12-20"},"type":"date"},{"op":"gt","field":"amount","value":150000,"type":"number"}] ``` **_actions field:** ``` [{"op":"link-schedule","field":null,"value":"c94196bf-406b-4b1b-8bef-c89adaa009f7","type":"id"}] ``` **=> maybe the `"field":null` is the culprit??????**
Author
Owner

@fred777 commented on GitHub (Dec 20, 2024):

Anyways - the solution for me to get rid of the crashes was to

1.) figure out related payee id via v_payees view
2.) search for that payee id in _conditions column of v_schedules view
3.) pick related rule id and schedule id and delete related rows from rules, schedules, schedules_json_path, and schedules_next_date tables

(all done with help of https://sqlitebrowser.org/ and I hope I didn't miss/break anything)

<!-- gh-comment-id:2556999924 --> @fred777 commented on GitHub (Dec 20, 2024): Anyways - the solution for me to get rid of the crashes was to 1.) figure out related payee id via `v_payees` view 2.) search for that payee id in `_conditions` column of `v_schedules` view 3.) pick related rule id and schedule id and delete related rows from `rules`, `schedules`, `schedules_json_path`, and `schedules_next_date` tables (all done with help of https://sqlitebrowser.org/ and I hope I didn't miss/break anything)
Author
Owner

@cjfagerstrom commented on GitHub (Dec 21, 2024):

Just wanted to note that I'm having the same issue. TypeError: Cannot read properties of null (reading 'num1') at IC I have not changed anything in my budget and haven't even been in my budget in a couple of weeks. It's been working fine for months and my docker is set to update weekly in case there are any new updates rolled out. Seems like something in the last update from 2 weeks ago likely introduced this bug. The error happens on the schedules page, one specific account page, and the all accounts page. Navigating back a page and then clicking restart app lets me resume working until I navigate to one of those pages again.

<!-- gh-comment-id:2558109911 --> @cjfagerstrom commented on GitHub (Dec 21, 2024): Just wanted to note that I'm having the same issue. `TypeError: Cannot read properties of null (reading 'num1') at IC` I have not changed anything in my budget and haven't even been in my budget in a couple of weeks. It's been working fine for months and my docker is set to update weekly in case there are any new updates rolled out. Seems like something in the last update from 2 weeks ago likely introduced this bug. The error happens on the schedules page, one specific account page, and the all accounts page. Navigating back a page and then clicking restart app lets me resume working until I navigate to one of those pages again.
Author
Owner

@youngcw commented on GitHub (Dec 21, 2024):

I believe this has been fixed in edge. Can someone test their budget on edge.actualbudget.org?

<!-- gh-comment-id:2558138405 --> @youngcw commented on GitHub (Dec 21, 2024): I believe this has been fixed in edge. Can someone test their budget on edge.actualbudget.org?
Author
Owner

@cjfagerstrom commented on GitHub (Dec 21, 2024):

Can confirm edge has resolved the issue.

<!-- gh-comment-id:2558148423 --> @cjfagerstrom commented on GitHub (Dec 21, 2024): Can confirm edge has resolved the issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#50805