[GH-ISSUE #1963] [Bug]: Error when creating a category with the same name as a deleted category #49876

Closed
opened 2026-04-30 11:56:41 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @joel-jeremy on GitHub (Nov 23, 2023).
Original GitHub issue: https://github.com/actualbudget/actual/issues/1963

Verified issue does not already exist?

  • I have searched and found no existing issue

What happened?

Steps to reproduce:

  1. Delete a category e.g. Test
  2. Create a Test category under the same group

What error did you receive?

image

Where are you hosting Actual?

Fly.io

What browsers are you seeing the problem on?

Chrome, Other

Operating System

Windows 11

Originally created by @joel-jeremy on GitHub (Nov 23, 2023). Original GitHub issue: https://github.com/actualbudget/actual/issues/1963 ### Verified issue does not already exist? - [X] I have searched and found no existing issue ### What happened? Steps to reproduce: 1. Delete a category e.g. `Test` 2. Create a `Test` category under the same group ### What error did you receive? ![image](https://github.com/actualbudget/actual/assets/20313680/fcd72da0-227e-47f5-8b8b-6b5595a64e76) ### Where are you hosting Actual? Fly.io ### What browsers are you seeing the problem on? Chrome, Other ### Operating System Windows 11
GiteaMirror added the budgetingbug labels 2026-04-30 11:56:42 -05:00
Author
Owner

@joel-jeremy commented on GitHub (Nov 24, 2023):

@Shazib are we not totally removing the categories from DB when deleting?

<!-- gh-comment-id:1825112515 --> @joel-jeremy commented on GitHub (Nov 24, 2023): @Shazib are we not totally removing the categories from DB when deleting?
Author
Owner

@Shazib commented on GitHub (Nov 24, 2023):

Hmm, I guess not...

Is this as a result of my recent changes? I will review this evening.

<!-- gh-comment-id:1825521494 --> @Shazib commented on GitHub (Nov 24, 2023): Hmm, I guess not... Is this as a result of my recent changes? I will review this evening.
Author
Owner

@meichenf commented on GitHub (Nov 27, 2023):

I ran into this problem as well running actual-server:edge-alpine but just edited categories->tombstone for that item 1 to 0 which appeared to fix the issue after I rebooted my container. I haven't looked at the code but I'm guess Module.insertCategory isn't checking that flag / INTEGER.

<!-- gh-comment-id:1828720813 --> @meichenf commented on GitHub (Nov 27, 2023): I ran into this problem as well running actual-server:edge-alpine but just edited categories->tombstone for that item 1 to 0 which appeared to fix the issue after I rebooted my container. I haven't looked at the code but I'm guess Module.insertCategory isn't checking that flag / INTEGER.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#49876