actualbudget / import-ynab5

A tool for importing YNAB5 (nYNAB) data into Actual
26 stars 14 forks source link

Missing Category Amounts from Import #7

Open lancepick opened 2 years ago

lancepick commented 2 years ago

Category Budgeted amounts aren't being updated by the importer.

Is there a bug in actual.setBudgetAmount()?

I can see an amount getting to the call, but the budgeted value doesn't appear to be updating (verified by checking both the final budget file via UI as well as adding a call to actual.getBudgetMonth() after the import.)

https://github.com/actualbudget/import-ynab5/blob/394ca66d7934189fa395cb0e86ccfc85033c9a35/importer.js#L284

ssilence5 commented 2 years ago

Was coming here to state this same thing. My imports seem to be working except for the Set Budget as specified above.

skrobul commented 2 years ago

Fwiw, resetting the cache solved that for me:

  1. Click the :gear: icon next to the budget name
  2. Click Advanced -> Reset budget cache
trevdor commented 2 years ago

Following @skrobul's suggestion, I also needed to close & reopen Actual to get correct Spent and Balance values. 🤷🏻‍♂️

ecs487 commented 2 years ago

Fwiw, resetting the cache solved that for me:

  1. Click the ⚙️ icon next to the budget name
  2. Click Advanced -> Reset budget cache

Thanks for the suggestion. This did work for all past and future months budgeted, but somehow the current month did not sync.

jlongster commented 2 years ago

I'm closing this because this isn't a problem with the importer I don't think; the importer is doing the right thing and any bugs are going to be within the app/API. The next release will have fixes around this area.

trevdor commented 2 years ago

@jlongster You'd have thought I was waiting for Hamilton tickets to open with how many times I checked for 0.0.145. 😆 Import was SO much faster! 🚤

Now the bad news: a fresh export from YNAB still imported with Spent/Balance values but still no category amount. Is it just me? Screenshot to make sure this is the same issue you described in the release notes:

Screen Shot 2021-12-10 at 8 09 13 PM

Lemme know if I can provide any useful info or try anything to help troubleshoot.

jlongster commented 2 years ago

Haha! Glad the performance optimizations are paying off.

Ok, that release fixed major problem where sometimes the entire budget table was blank. That's what fixed the spent/balance values.

I'm reopening this issue; looks like the issue for the budget values is from the importer. The rest of the data is calculated and that's working fine; the budget values are the things that should be coming from the importer.

@trevdor if you feel comfortable, do you mind send me your JSON file at help@actualbudget.com. You could try to scrub the data if you want to. If not, I'll need someone to send me a file that can reproduce this.

trevdor commented 2 years ago

It's like my whole life story for the last 5 years, but sure, sending it over in the name of science! :D Didn't realize it's the importer's fault. I'll try to find time to take a look later, too.