[GH-ISSUE #5258] [Bug]: Changing Schedule's Rule date field using Rule Action Templating, crashes the app #28033

Closed
opened 2026-04-18 04:39:35 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @pogman-code on GitHub (Jun 30, 2025).
Original GitHub issue: https://github.com/actualbudget/actual/issues/5258

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Note: if this helps, it used to work before 25.6.x as I have those schedules/rules for a while now.
Note 2: Funny thing, I found out that it does not crash when using the mobile view (but the upcoming transaction does not appear).

As the title says, if you change the date of a schedule's transaction using rule action Rule Action Templating, the app crashes with the following error:

TransactionsTable.tsx:2084 TypeError: dateString.split is not a function
    at splitDateString (date-fns.js?v=daf7e3dd:4866:28)
    at parseISO (date-fns.js?v=daf7e3dd:4821:23)
    at serializeTransaction (utils.ts:51:20)
    at TransactionsTable.tsx:915:5
    at mountStateImpl (react-dom_client.js?v=9d572b16:4662:26)
    at mountState (react-dom_client.js?v=9d572b16:4683:24)
    at Object.useState (react-dom_client.js?v=9d572b16:16542:20)
    at exports.useState (chunk-VWKUB6X4.js?v=ca41c550:929:36)
    at Transaction (TransactionsTable.tsx:914:41)
    at react-stack-bottom-frame (react-dom_client.js?v=9d572b16:17426:20)

The above error occurred in the <Transaction> component.

React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary.

How can we reproduce the issue?

To reproduce the issue, do the following:

  • Create a schedule for accoutn "X" that is due tomorrow and check "Automatically add transaction"
  • Save the Schedule
  • Edit the Schedule and click the "Edit as rule" button
  • Add a new action to the "date" field and set the following regex: {{regex date "^(\d{4})-(\d{2})-(\d{2})$" "$1-$2-05"}} or {{setDay date 5}}
  • Save changes
  • Navigate to account "X"
  • CRASH

Image

Where are you hosting Actual?

Locally via Yarn

What browsers are you seeing the problem on?

Chrome

Operating System

Linux

Originally created by @pogman-code on GitHub (Jun 30, 2025). Original GitHub issue: https://github.com/actualbudget/actual/issues/5258 ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? > Note: if this helps, it used to work before 25.6.x as I have those schedules/rules for a while now. > Note 2: Funny thing, I found out that it does not crash when using the mobile view (but the upcoming transaction does not appear). As the title says, if you change the date of a schedule's transaction using rule action Rule Action Templating, the app crashes with the following error: ``` TransactionsTable.tsx:2084 TypeError: dateString.split is not a function at splitDateString (date-fns.js?v=daf7e3dd:4866:28) at parseISO (date-fns.js?v=daf7e3dd:4821:23) at serializeTransaction (utils.ts:51:20) at TransactionsTable.tsx:915:5 at mountStateImpl (react-dom_client.js?v=9d572b16:4662:26) at mountState (react-dom_client.js?v=9d572b16:4683:24) at Object.useState (react-dom_client.js?v=9d572b16:16542:20) at exports.useState (chunk-VWKUB6X4.js?v=ca41c550:929:36) at Transaction (TransactionsTable.tsx:914:41) at react-stack-bottom-frame (react-dom_client.js?v=9d572b16:17426:20) The above error occurred in the <Transaction> component. React will try to recreate this component tree from scratch using the error boundary you provided, ErrorBoundary. ``` ### How can we reproduce the issue? To reproduce the issue, do the following: - Create a schedule for accoutn "X" that is due tomorrow and check "Automatically add transaction" - Save the Schedule - Edit the Schedule and click the "Edit as rule" button - Add a new action to the "date" field and set the following regex: `{{regex date "^(\d{4})-(\d{2})-(\d{2})$" "$1-$2-05"}}` or `{{setDay date 5}}` - Save changes - Navigate to account "X" - CRASH ![Image](https://github.com/user-attachments/assets/c9e6c554-cab0-44ce-921f-da813a329ecf) ### Where are you hosting Actual? Locally via Yarn ### What browsers are you seeing the problem on? Chrome ### Operating System Linux
GiteaMirror added the bug label 2026-04-18 04:39:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#28033