0
bhasinp created
- ABP Framework version: v7.2.2
- 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:"
How can I allow adding sub-unit of same name in different node of organization ? Here is an example/error
Ed: Adding Orgs and Sub units in following sequence
- ORG1
- ORG-SUB-1 (adding this name works well)
- ORG-SUB-2 (adding this name works well)
- ORG2
- ORG-SUB-1 (get error Organization unit is already exist with name ORG-SUB-1 !!)
- ORG-SUB-2 (get error Organization unit is already exist with name ORG-SUB-2!!)
- ORG-SUB-3 (adding this name works well)
1 Answer(s)
-
0
Hello bhasinp,
Please check this documentation https://docs.abp.io/en/abp/3.1/Modules/Organization-Units
it is mentioned that the OU code must be unique so please use an unique codes for organization items and follow hierarchy like instead of ORG-SUB-1 , you may use ORG1-SUB-1 like wise (ORG1) as first root name, so every node will get unique
Thanks, Anjali