-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug]: Import from nYNAB fails with unknown error #1968
Comments
👋 Can you provide an example file to reproduce the issue? Even if it's filled with dummy data. There's not much we can do to help without being able to reproduce. |
Please find the automatically obfuscated file attached. |
Thanks. I think the problem is with the recursive sorting solution we have. I've implemented a quick patch that falls back to unsorted list if this problem occurs. Try importing by using the demo link provided there and let me know if that fixes your problem (though I don't exactly know what other knock-on effect this unsorted-ness issue might create). |
When testing either the obfuscated or non-obfuscated json at https://deploy-preview-2104.demo.actualbudget.org/, unfortunately, I keep getting the same (unknown) error. |
Your budget should have these entries. Could you please de-obfuscate them and reupload the export? Category groups:
Categories:
Payees:
|
I experienced this as well with a budget going back to 1/1/2016, but I was able to figure out the problem (at least for me) using the process of elimination. Here's what I did:
I'm not sure what about my hidden categories caused the import to fail, but there you have it! |
My nYNAB budget (old data from earlier last year) export now contains one duplicate category in the hidden categories called 'Software Subscriptions' which throws this error. I didn't see this a few months ago when I first moved to actual. But saw it while doing some debugging where I wanted to import a bunch of data. |
My issue very well may have been a duplicate hidden category too. |
OK, so I resubscribed to YNAB to try the Fresh Start approach. After removing most accounts and categories, plus all payees, and entering a fake transaction, then exporting to JSON and importing in Actual, I still get the error. I've attached the JSON (hardly obfuscated this time but quite empty, hope that helps). |
I get the following error when uploading the attached budget:
Looks like @Arnoud-B's attached budget has
Think it might be as simple as making the check case insensitive. Ill put up a pr |
I have put up #2191 which I think should address the 'starting balance' issue |
I can confirm that after replacing |
* Allow case insensitive ynab5 import for special 'starting balance' payee * set upcoming release number to related github issue * extract string comparison into separate function and reuse when checking starting balance/s on ynab4 import * make all category group checks case insensitive when importing from ynab5 to make the check strategy consistent when importing from ynab5 * extract findById into sreusable function to 'simplify' usage * Add null check Co-authored-by: Joel Jeremy Marquez <[email protected]> --------- Co-authored-by: Joel Jeremy Marquez <[email protected]>
…error (actualbudget#2191) * Allow case insensitive ynab5 import for special 'starting balance' payee * set upcoming release number to related github issue * extract string comparison into separate function and reuse when checking starting balance/s on ynab4 import * make all category group checks case insensitive when importing from ynab5 to make the check strategy consistent when importing from ynab5 * extract findById into sreusable function to 'simplify' usage * Add null check Co-authored-by: Joel Jeremy Marquez <[email protected]> --------- Co-authored-by: Joel Jeremy Marquez <[email protected]>
Importing is not working again today. |
👋 @Hbicari if you can share the file you tried to import someone might be able to take a look for you |
Hello, this is the file i was trying to import. |
@Hbicari I'm able to import your file without errors on latest. What version of actual are you using? |
24.5.0 is the version. |
Sorry i attached the wrong one. Here is the one im having issues. |
@Hbicari looks like it doesn't like that you have a category group called 'Income' - this bit in your json file
I think this is because Income is a default category group in actual by default. As a short term fix you can get around this by naming the category group something else (even just Income with a space at the end Longer term something should be done to handle imports that have a category group set as income, this can probably be raised as a bug |
That Worked, thank you for the help. |
Verified issue does not already exist?
What happened?
Importing a ~12MB .json from nYNAB fails with an unknown error. I tried the .json output resulting from the instructions for using the Terminal, and the .json output from the netifly app. Both give the same error and have the same size. The .json contains about 6 years of data, which is hard to share for obvious reasons..
What error did you receive?
Where are you hosting Actual?
Locally via Yarn
What browsers are you seeing the problem on?
Firefox, Other
Operating System
Mac OSX
The text was updated successfully, but these errors were encountered: