Hi, I am facing the issue where I can generate the master entity with lets say BusinessUnitId (from BusinessUnit master entity). But it says internal error when i add LocationId (from Location child entity of BusinessUnit master entity). The logs say:
Could not find a part of the path C:\SourceCode\XX\test\XX.Domain.Tests\Locations\LocationsDataSeedContributor.cs
8 Answer(s)
-
0
- This error is not caused by the navigation property itself. ABP Suite is failing while trying to create/update the test data seeder file for the entity (because you enabled Create Tests during CRUD generation).
- The log tells the exact failing file path Suite is trying to touch, but it doesn’t exist on disk:
Could not find a part of the path C:\SourceCode\XX\test\XX.Domain.Tests\Locations\LocationsDataSeedContributor.csFix (fastest)
- Re-generate the entity with “Create Tests” unchecked in ABP Suite.
- Suite will skip generating/updating
*.Domain.Testsdata seed contributors, so it won’t try to access that missing folder/file.
- Suite will skip generating/updating
Fix (keep tests enabled)
- Ensure your solution really has the expected test project/folder structure:
test\XX.Domain.Tests\
- Under that project, create the missing folder:
Locations\
- Then run generation again.
Why it happens “only when adding LocationId”
- When you add a navigation connection (especially master-detail / child references), Suite may additionally generate or update test seed contributors for the related entity (here:
LocationsDataSeedContributor.cs). If thetest\...Domain.Tests\Locations\folder (or theXX.Domain.Testsproject) isn’t present, you get this “Could not find a part of the path” internal error.
Links (verified):
- https://abp.io/docs/latest/suite/generating-crud-page
- https://abp.io/community/articles/furp75ex
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi, need support team assistance.
Context: 1. Create Master entity called ProcessAprroval 2. Inside ProcessApproval entity, reference two entities as FK (BusinessUnitId and LocationId) 3. Getting internal error message if create by: adding both FK in the basics section of the navigation properties page in ABP Suite. 4. Able to save and generate the ProcessApproval entity if remove the LocationId FK in Navigation Properties page. 5. BusinessUnitId is the primary key of Business Unit master entity, then LocationId is sitting in the Location child entity of Business Unit master entity.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
This is a Suite bug, not something wrong on your side. It shows up because
Locationis a child entity in a master-detail relationship. Child entities don't get their own data seed contributor generated under*.Domain.Tests, but when you add a required navigation property that points to one, Suite still tries to read that missingLocationsDataSeedContributor.cswhile generating the test seeder forProcessApproval— so it fails with the "Could not find a part of the path" error. That's also why removingLocationIdlets it generate:BusinessUnitis a master entity and does have that file.As a temporary fix, uncheck Create unit & integration tests on the
ProcessApprovalentity and generate again:- Open
ProcessApprovalin Suite - On the Entity info tab, untick
Create unit & integration tests - Save and generate
Suite then skips the test seeders entirely, so it generates fine and your required
BusinessUnitId/LocationIdFKs stay as they are. You can turn tests back on and regenerate once it's fixed.We'll get this fixed on the Suite side.
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) - Open
-
0
Hi, do we have any info on when will this be fixed?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
We've fixed it on our side, and it will ship in the next 10.5.x patch. Until then the workaround above (uncheck Create unit & integration tests for that entity) keeps you unblocked.
Thanks
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
thanks.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)