Open Closed

[Bug] - Unable to create new organization unit #4817


User avatar
0
trannguyenphucanh created
  • ABP Framework version: v5.3.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi Support Team,

I've encountered this bug:

  1. Go to "Administration" -> "Identity Management" -> "Organization Units"
  2. When I click "Add root unit"
  3. After I enter the name and click save, it can't be saved

Since I can not access the the API (/identity/organization-units) as it belongs to the framework core. I hope support team can help me solve this bug Hope to hearing from you guys soon.

Thanks.


5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Can you share the error logs? thanks.

  • User Avatar
    0
    trannguyenphucanh created

    Hello, I send the error logs.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I guess you extend Entity, but you can't insert a new entity since the field is not nullable and has no default value.

    You can change the field to nullable or set a default value.

  • User Avatar
    0
    trannguyenphucanh created

    I will check it again. Thank you so much.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    ok

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on July 09, 2025, 06:20