Open Closed

Transaction with UnitOfWork not working #3774


User avatar
0
thaithiendi created

Dear support Team,

I'm using IUnitOfWorkManager to make Transaction with execute store procedue oracle. This my code: When debug code, I intentionally let it be error in //CREATE PDF FILE I want to rollback //UPDATE TASK When error in //CREATE PDF FILE, it throw exception but my database still save info of //UPDATE TASK. How can I rollback //UPDATE TASK?

  • ABP Framework version: v5.3.3
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi thaithiendi

    1. Try to remove app.UseUnitOfWork() from the ASP.NET Core pipeline.
    2. if 1 doesn't work, please share some code to reproduce the problem.
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    thaithiendi created

    Dear maliming ,

    I try to remove app.UseUnitOfWork() but issue not resolved. This my controller code, it not implement IUnitOfWorkManager: This my service code

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a simple project to reproduce? liming.ma@volosoft.com

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.