[GH-ISSUE #4608] [Bug]: Run Rules in All Accounts view leads to "Something internally went wrong" when the rules has a split action #27753

Closed
opened 2026-04-18 04:21:26 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @esseti on GitHub (Mar 12, 2025).
Original GitHub issue: https://github.com/actualbudget/actual/issues/4608

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

In the budget, clicking to run rules results in an error if the rule includes an action to create a split transaction. However, for other rules, it functions properly.

Running the same rule from the rule editor view, on the other hand, works correctly even for the split transaction.

How can we reproduce the issue?

How to replicate:

  • Create a rule like this:
    Image
  • go to all account
  • search the transaction that the rules can be excuted (in this case, the one of Dominion Power)
  • select one
  • from the drop-down menu of the transaction click Run Rules.

You will see this appearing

Image

but there's no log or anything in the terminal.

NOTE: if you run the rule from the rule edit view, it works properly
NOTE2: even if i built this functionality, i'm not so expert to fix this problem, nor i understand why it happens.

Where are you hosting Actual?

Pikapods

What browsers are you seeing the problem on?

Chrome

Operating System

Mac OSX

Originally created by @esseti on GitHub (Mar 12, 2025). Original GitHub issue: https://github.com/actualbudget/actual/issues/4608 ### Verified issue does not already exist? - [x] I have searched and found no existing issue ### What happened? In the budget, clicking to run rules results in an error if the rule includes an action to create a split transaction. However, for other rules, it functions properly. Running the same rule from the rule editor view, on the other hand, works correctly even for the split transaction. ### How can we reproduce the issue? How to replicate: - Create a rule like this: ![Image](https://github.com/user-attachments/assets/256abdb8-2362-40f4-8826-c35a90dc8d12) - go to all account - search the transaction that the rules can be excuted (in this case, the one of Dominion Power) - select one - from the drop-down menu of the transaction click Run Rules. You will see this appearing ![Image](https://github.com/user-attachments/assets/8eade8a8-ef80-4504-bb32-ed3b8e5b8327) but there's no log or anything in the terminal. NOTE: if you run the rule from the rule edit view, it works properly NOTE2: even if i built this functionality, i'm not so expert to fix this problem, nor i understand why it happens. ### Where are you hosting Actual? Pikapods ### What browsers are you seeing the problem on? Chrome ### Operating System Mac OSX
GiteaMirror added the bug label 2026-04-18 04:21:26 -05:00
Author
Owner

@alecbakholdin commented on GitHub (Mar 12, 2025):

Not sure about in prod, but running the dev server reveals the following console error:

[Exception] Error: Field “subtransactions” does not exist on table transactions: {"id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","is_parent":true,"is_child":false,"parent_id":null,"account":"05ef5718-949f-4274-92b1-960a4a92bee6","category":null,"amount":-1000,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","notes":null,"date":"2025-03-12","imported_id":null,"error":null,"imported_payee":null,"starting_balance_flag":false,"transfer_id":null,"sort_order":1741794441253,"cleared":false,"reconciled":false,"tombstone":false,"schedule":null,"raw_synced_data":null,"_account":{"id":"05ef5718-949f-4274-92b1-960a4a92bee6","account_id":null,"name":"local","balance_current":null,"balance_available":null,"balance_limit":null,"mask":null,"official_name":null,"subtype":null,"bank":null,"offbudget":0,"closed":0,"tombstone":0,"sort_order":16384,"type":null,"account_sync_source":null,"last_sync":null,"last_reconciled":null,"bankName":null,"bankId":null},"subtransactions":[{"amount":-500,"sort_order":-2,"category":null,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","id":"d82ed009-2507-40fb-a187-a2a96c179cc0","account":"05ef5718-949f-4274-92b1-960a4a92bee6","date":"2025-03-12","cleared":false,"reconciled":false,"starting_balance_flag":false,"is_child":true,"parent_id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","error":null},{"amount":-500,"sort_order":-3,"category":null,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","id":"06e58dbd-e1fa-4d05-bd81-dd5d0ab7d4fb","account":"05ef5718-949f-4274-92b1-960a4a92bee6","date":"2025-03-12","cleared":false,"reconciled":false,"starting_balance_flag":false,"is_child":true,"parent_id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","error":null}]}
    at schema-helpers.ts:120:17
    at Array.map (<anonymous>)
    at conform (schema-helpers.ts:112:8)
    at convertForUpdate (schema-helpers.ts:190:10)
    at updateWithSchema (index.ts:303:40)
    at Module.updateTransaction (index.ts:761:10)
    at index.ts:117:17
    at Array.map (<anonymous>)
    at index.ts:107:17
    at batchMessages (index.ts:469:11)
<!-- gh-comment-id:2718340156 --> @alecbakholdin commented on GitHub (Mar 12, 2025): Not sure about in prod, but running the dev server reveals the following console error: ``` [Exception] Error: Field “subtransactions” does not exist on table transactions: {"id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","is_parent":true,"is_child":false,"parent_id":null,"account":"05ef5718-949f-4274-92b1-960a4a92bee6","category":null,"amount":-1000,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","notes":null,"date":"2025-03-12","imported_id":null,"error":null,"imported_payee":null,"starting_balance_flag":false,"transfer_id":null,"sort_order":1741794441253,"cleared":false,"reconciled":false,"tombstone":false,"schedule":null,"raw_synced_data":null,"_account":{"id":"05ef5718-949f-4274-92b1-960a4a92bee6","account_id":null,"name":"local","balance_current":null,"balance_available":null,"balance_limit":null,"mask":null,"official_name":null,"subtype":null,"bank":null,"offbudget":0,"closed":0,"tombstone":0,"sort_order":16384,"type":null,"account_sync_source":null,"last_sync":null,"last_reconciled":null,"bankName":null,"bankId":null},"subtransactions":[{"amount":-500,"sort_order":-2,"category":null,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","id":"d82ed009-2507-40fb-a187-a2a96c179cc0","account":"05ef5718-949f-4274-92b1-960a4a92bee6","date":"2025-03-12","cleared":false,"reconciled":false,"starting_balance_flag":false,"is_child":true,"parent_id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","error":null},{"amount":-500,"sort_order":-3,"category":null,"payee":"a9d386f6-bbf6-423e-882d-030cbe9fe370","id":"06e58dbd-e1fa-4d05-bd81-dd5d0ab7d4fb","account":"05ef5718-949f-4274-92b1-960a4a92bee6","date":"2025-03-12","cleared":false,"reconciled":false,"starting_balance_flag":false,"is_child":true,"parent_id":"9607bfc8-ff17-4a71-b5f1-8b9f36c52ead","error":null}]} at schema-helpers.ts:120:17 at Array.map (<anonymous>) at conform (schema-helpers.ts:112:8) at convertForUpdate (schema-helpers.ts:190:10) at updateWithSchema (index.ts:303:40) at Module.updateTransaction (index.ts:761:10) at index.ts:117:17 at Array.map (<anonymous>) at index.ts:107:17 at batchMessages (index.ts:469:11) ```
Author
Owner

@UnderKoen commented on GitHub (Mar 12, 2025):

Related to #3805

<!-- gh-comment-id:2718362755 --> @UnderKoen commented on GitHub (Mar 12, 2025): Related to #3805
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#27753