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

[Bug]: Can't run nYNAB import if 'Income' is a category group #2816

Closed
2 tasks done
Marethyu1 opened this issue Jun 1, 2024 · 1 comment · Fixed by #2817
Closed
2 tasks done

[Bug]: Can't run nYNAB import if 'Income' is a category group #2816

Marethyu1 opened this issue Jun 1, 2024 · 1 comment · Fixed by #2817
Labels
bug Something isn't working

Comments

@Marethyu1
Copy link
Contributor

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

If you have a nYNAB budget that has a category group where the name is 'Income' you can't import the budget.

Steps to reproduce,

Error shown in console

index.ts:313 Uncaught (in promise) Error: A ’Income’ category group already exists.
    at Module.insertCategoryGroup (index.ts:313:11)
    at async undoDisabled (api.ts:50:24)

Cause

I believe this Is due to Income being a default category group in actual. When it tries to create a category group it fails as a category group already exists

groupId = await actual.createCategoryGroup({
name: group.name,
is_income: false,
});

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Chrome, Safari

Operating System

Mac OSX

@Marethyu1 Marethyu1 added the bug Something isn't working label Jun 1, 2024
@Marethyu1
Copy link
Contributor Author

Discussion about this here #1968 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant