Starts in:
1 DAY
22 HRS
56 MIN
30 SEC
Starts in:
1 D
22 H
56 M
30 S
Open Closed

Unbale to update existing entity after upgraded to 8.0.5 from 7.4.0 #6966


User avatar
0
vipulbuoyancy created
  • ABP Framework version: v8.0.5
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace: Extra DB Set Added for existing entity
  • Steps to reproduce the issue:
  • Run ABP Suite
  • Select any Master existing entity
  • Select all the checkbox option without Custom Change
  • Click on Save & Generate button

It is adding and extra DBSet for an exisitng entity and that cause a build error. I have tried by removing an extra DBSet as well but after that started getting and error in unit test. Please keep this on high priority as this keeps holding development work


5 Answer(s)
  • User Avatar
    0
    vipulbuoyancy created

    Hi EngincanV, do you have any update on this?

    Thank you.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, I could not reproduce it. Can you explain your steps in detail with entity metadata if possible?

  • User Avatar
    0
    vipulbuoyancy created

    Hi Engincan, Thank you for your reply. Please follow the below steps

    1. Create project with 7.0.4 version
    2. Add one entity with few columns and UI using abp suite
    3. Now upgrade your project to version 8.0.5
    4. Open abp suite and modify the existing entity which was created in version 7.0.4 & add one more column
    5. Keep all the options check in abp suite except "Custom Change" in abp suite 8.0.5.
    6. It will gives an error while updating database.

    Thank you.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi Engincan, Thank you for your reply. Please follow the below steps

    1. Create project with 7.0.4 version
    2. Add one entity with few columns and UI using abp suite
    3. Now upgrade your project to version 8.0.5
    4. Open abp suite and modify the existing entity which was created in version 7.0.4 & add one more column
    5. Keep all the options check in abp suite except "Custom Change" in abp suite 8.0.5.
    6. It will gives an error while updating database.

    Thank you.

    Hi, thanks for the explanation. I reproduced the problem and will fix it asap. Closing the question because I created an internal issue to track the problem and refunded your ticket.

    In the meantime, you can remove the duplicated dbset for a quick workaround.

    Regards.

  • User Avatar
    0
    vipulbuoyancy created

    Hi Engincan, Thank you for your reply.

    Yes I am removing the duplicate dbset for now.

    Please also check because I am also getting an error if I generate the unit test for an existing entity which were created before upgrade.

    I am not reopening the ticket, but please try to follow the same steps with generating unit test and you will get the error. Please keep track of it with your internal issue too.

    Thank you.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06