[GH-ISSUE #4004] [Bug]: Error when choosing "imported payee contains" at rule creation #8629

Closed
opened 2026-04-10 18:51:41 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @purrrfecto on GitHub (Dec 18, 2024).
Original GitHub issue: https://github.com/actualbudget/actual/issues/4004

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

My environment:

  1. SimpleFIN for bank sync
  2. nothing manually imported
  3. server self hosted on Home Assistant OS on my Raspbery pi, using Home Assistant Add-on Current version: 24.12.0-alpine
  4. client access from Windows Application from my Windows 10 machine in same local network
  5. stable version

How can we reproduce the issue?

Side panel > More > Payees > click "Create rule" of any one of the payee
change condition match from "payee" to "imported payee"
change condition to "contains"

Error would pop up here. seems to mess up the whole system so I need to restart the server

the same error seems not pop up if I go to More > Rules and do the same thing. so it only happens from payee?

Where are you hosting Actual?

Other

What browsers are you seeing the problem on?

Desktop App (Electron)

Operating System

Windows 10

Originally created by @purrrfecto on GitHub (Dec 18, 2024). Original GitHub issue: https://github.com/actualbudget/actual/issues/4004 ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? My environment: 1. SimpleFIN for bank sync 2. nothing manually imported 3. server self hosted on Home Assistant OS on my Raspbery pi, using [Home Assistant Add-on](https://github.com/sztupy/hassio-actualbudget/blob/795e50d13b511b59246bc944b135e28ac7e45297/README.md) Current version: 24.12.0-alpine 4. client access from Windows Application from my Windows 10 machine in same local network 5. stable version ### How can we reproduce the issue? Side panel > More > Payees > click "Create rule" of any one of the payee change condition match from "payee" to "imported payee" change condition to "contains" Error would pop up here. seems to mess up the whole system so I need to restart the server the same error seems not pop up if I go to More > **Rules** and do the same thing. so it only happens from payee? ### Where are you hosting Actual? Other ### What browsers are you seeing the problem on? Desktop App (Electron) ### Operating System Windows 10
GiteaMirror added the bug label 2026-04-10 18:51:41 -05:00
Author
Owner

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

Confirming that I'm seeing the same issue on Electron on Mac

<!-- gh-comment-id:2558259445 --> @quarklark commented on GitHub (Dec 21, 2024): Confirming that I'm seeing the same issue on Electron on Mac
Author
Owner

@tekumara commented on GitHub (Dec 22, 2024):

Console log shows:

Server Log: conditionsToAQL: invalid condition: RuleError: contains must have non-empty string (field: imported_payee)

VM354:2 Server Log: [Exception] TypeError: Cannot read properties of null (reading 'op')
    at gT (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1004)
    at Array.map (<anonymous>)
    at gO (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1504)
    at b5.make-filters-from-conditions (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:294:1147)
    at oY (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:2551)
    at ParentPort.<anonymous> (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:3194)
    at ParentPort.emit (node:events:518:28)
    at ParentPort.i.emit (node:electron/js2c/utility_init:2:15723)

And then a restart is required to get things back to normal. Just refreshing the page is insufficient - it gets stuck on "Loading global preferences".

<!-- gh-comment-id:2558425850 --> @tekumara commented on GitHub (Dec 22, 2024): Console log shows: ``` Server Log: conditionsToAQL: invalid condition: RuleError: contains must have non-empty string (field: imported_payee) VM354:2 Server Log: [Exception] TypeError: Cannot read properties of null (reading 'op') at gT (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1004) at Array.map (<anonymous>) at gO (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:193:1504) at b5.make-filters-from-conditions (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:294:1147) at oY (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:2551) at ParentPort.<anonymous> (/Applications/Actual.app/Contents/Resources/app.asar/build/loot-core/lib-dist/electron/bundle.desktop.js:62:3194) at ParentPort.emit (node:events:518:28) at ParentPort.i.emit (node:electron/js2c/utility_init:2:15723) ``` And then a restart is required to get things back to normal. Just refreshing the page is insufficient - it gets stuck on "Loading global preferences".
Author
Owner

@tekumara commented on GitHub (Dec 22, 2024):

A workaround is to first select "imported payee one of", provide a value, and then select "contains". This will ensure the contains value isn't empty, which is what triggers the error.

<!-- gh-comment-id:2558427931 --> @tekumara commented on GitHub (Dec 22, 2024): A workaround is to first select "imported payee one of", provide a value, and then select "contains". This will ensure the contains value isn't empty, which is what triggers the error.
Author
Owner

@matt-fidd commented on GitHub (Jan 20, 2025):

I believe this is fixed now, I can no longer replicate on edge

<!-- gh-comment-id:2602105194 --> @matt-fidd commented on GitHub (Jan 20, 2025): I believe this is fixed now, I can no longer replicate on edge
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#8629