Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read properties undefined (reading 'scheduled') #249

Open
devzspy opened this issue Jul 1, 2024 · 6 comments
Open

Read properties undefined (reading 'scheduled') #249

devzspy opened this issue Jul 1, 2024 · 6 comments

Comments

@devzspy
Copy link

devzspy commented Jul 1, 2024

OS: Windows 10 Professional
App Variant: Desktop

Describe the bug
The following error pops up upon opening Paisa and it automatically loading my "Dashboard"

TypeError: Cannot read properties of undefined (reading 'scheduled')
    at http://wails.localhost/_app/immutable/chunks/transaction_sequence.giWNlVyI.js:1:2373
    at http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:22675
    at $e (http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:7225)
    at http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:22651
    at http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:21630
    at http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:28624
    at bf (http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:21602)
    at xf (http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:22624)
    at Function. (http://wails.localhost/_app/immutable/chunks/store.omAut747.js:19:11094)
    at ft (http://wails.localhost/_app/immutable/chunks/store.omAut747.js:17:6419)

and

TypeError: Cannot read properties of undefined (reading 'scheduled')
    at $s (http://wails.localhost/_app/immutable/nodes/3.f21ftaE2.js:1:4626)
    at Ct (http://wails.localhost/_app/immutable/chunks/index.0TyeUux6.js:4:2772)
    at new Es (http://wails.localhost/_app/immutable/nodes/3.f21ftaE2.js:1:4777)
    at Gt (http://wails.localhost/_app/immutable/nodes/3.f21ftaE2.js:5:10583)
    at jt (http://wails.localhost/_app/immutable/nodes/3.f21ftaE2.js:5:9263)
    at Object.p (http://wails.localhost/_app/immutable/nodes/3.f21ftaE2.js:5:19441)
    at lt (http://wails.localhost/_app/immutable/chunks/scheduler.rpkcuUjt.js:1:8650)
    at rt (http://wails.localhost/_app/immutable/chunks/scheduler.rpkcuUjt.js:1:8303)

To Reproduce
Steps to reproduce the behavior:

  1. Close Paisa if open
  2. Open Paisa

Expected behavior
Expecting the dashboard to open as it normally does and be able to use Paisa

Screenshots
If applicable, add screenshots to help explain your problem.

image

@devzspy devzspy changed the title Scheduled Read properties undefined (reading 'scheduled') Jul 1, 2024
@devzspy
Copy link
Author

devzspy commented Jul 1, 2024

After removing a few entries within the editor/database I get my dashboard to load. However, if I attempt to insert any more transactions in the month of June I start to get the errors above. If I start to put transactions in July the program operates as expected.

@devzspy
Copy link
Author

devzspy commented Jul 7, 2024

Looks like a scheduled Recurring entry was conflicting with a configuration for a credit card under More -> Configuration -> Credit Cards

I had

= Liabilities:CreditCard:Chase
    ; Recurring: ChasePayment
    ; Period: 16W * ?

Which had an entry under configurations. My guess was the period of 16W ? * was conflicting with the entry in my configuration (paisa.yaml)

@devzspy
Copy link
Author

devzspy commented Jul 8, 2024

After more tinkering it seems the conflict arises when I have the above in my ledger but then I am using that exact Account of Liabilities:CreditCard:Chase as I do have other transactions using that. It works just fine if you switch the above to something like

expr payee=~/Chase Payment/
    ; Recurring: ChasePayment
    ; Period: 16W * ?

At least if you want something to show up under the Recurring section. If not you don't need this.

@AgileSenthil
Copy link

Thanks for the above findings. It did resolve the issue I faced. The common pattern between our cases is about the recurring tag. I had the following that caused the error.

= Assets:Debt:Deposits:PO SCSS
; Recurring: PO-SCSS1
; Period: L 3,6,9,12 *

@devzspy devzspy closed this as completed Jul 10, 2024
@ananthakumaran
Copy link
Owner

Thanks for debugging, I would like to keep this open. I understand you found some workaround, but app shouldn't crash in any cases. I am a bit tight with no free time nowadays, but keeping this open would help me or someone else to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants