[GH-ISSUE #7457] [Bug]: RuleError log on downloadBudget api call #72827

Closed
opened 2026-05-16 13:41:27 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @matheusvellone on GitHub (Apr 10, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/7457

What happened?

I'm the developer of actual-ical

When i updated the @actual-app/api from 26.3.0 to 26.4.0 on my app, I started receiving this error when the downloadBudget method is called 🤔

Invalid rule RuleError: RuleError: Invalid condition operator: oneOf (type: string, field: notes)
    at assert (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule-utils.ts:14:11)
    at new Condition (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/condition.ts:212:5)
    at /Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:139:12
    at Array.map (<anonymous>)
    at new Rule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:138:34)
    at makeRule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:166:12)
    at loadRules (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:198:18)
    at async _loadBudget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:607:3)
    at async Object.loadBudget$1 [as load-budget] (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:235:15)
    at async handlers$1.api/download-budget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/api.ts:224:5) {
  type: 'internal'
}

Despite the error, the downloadBudget does not throw this error and everything seems to work as expected.
I also tested with a fresh file, and no error happens, but on my live file it does.

I could not pin point exactly what kind if existing data makes this errors start appearing

How can we reproduce the issue?

Run downloadBudget on a file with some specific data that triggers this error

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Other

Operating System

Mac OSX

Originally created by @matheusvellone on GitHub (Apr 10, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/7457 ### What happened? _I'm the developer of [actual-ical](https://github.com/matheusvellone/actual-ical)_ When i updated the `@actual-app/api` from 26.3.0 to 26.4.0 on my app, I started receiving this error when the `downloadBudget` method is called 🤔 ``` Invalid rule RuleError: RuleError: Invalid condition operator: oneOf (type: string, field: notes) at assert (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule-utils.ts:14:11) at new Condition (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/condition.ts:212:5) at /Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:139:12 at Array.map (<anonymous>) at new Rule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/rules/rule.ts:138:34) at makeRule (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:166:12) at loadRules (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/transactions/transaction-rules.ts:198:18) at async _loadBudget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:607:3) at async Object.loadBudget$1 [as load-budget] (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/budgetfiles/app.ts:235:15) at async handlers$1.api/download-budget (/Users/matheusvellone/Documents/actual-ical/node_modules/@actual-app/loot-core/src/server/api.ts:224:5) { type: 'internal' } ``` Despite the error, the `downloadBudget` does not throw this error and everything seems to work as expected. I also tested with a fresh file, and no error happens, but on my live file it does. I could not pin point exactly what kind if existing data makes this errors start appearing ### How can we reproduce the issue? Run `downloadBudget` on a file with some specific data that triggers this error ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Other ### Operating System Mac OSX
GiteaMirror added the bug label 2026-05-16 13:41:27 -05:00
Author
Owner

@MatissJanis commented on GitHub (Apr 11, 2026):

We disabled oneOf and notOneOf filters for notes field. You must have a rule that still uses it - hence the error.

The oneOf and notOneOf didn't really make much sense in the context of "notes" as those two conditions are used for autocompletes. But notes is a free-text field.

https://github.com/actualbudget/actual/pull/6567

<!-- gh-comment-id:4229319801 --> @MatissJanis commented on GitHub (Apr 11, 2026): We disabled `oneOf` and `notOneOf` filters for `notes` field. You must have a rule that still uses it - hence the error. The `oneOf` and `notOneOf` didn't really make much sense in the context of "notes" as those two conditions are used for autocompletes. But notes is a free-text field. https://github.com/actualbudget/actual/pull/6567
Author
Owner

@MatissJanis commented on GitHub (Apr 11, 2026):

ps. - previously this warning was silently swallowed. But with the api restructuring work I have been doing - now we are properly reporting it. So technically this was a silent warning since v26.2.0.

<!-- gh-comment-id:4229321606 --> @MatissJanis commented on GitHub (Apr 11, 2026): ps. - previously this warning was silently swallowed. But with the api restructuring work I have been doing - now we are properly reporting it. So technically this was a silent warning since v26.2.0.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#72827