close

[Solved] DatabaseError: current transaction is aborted, commands ignored until end of transaction block?

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error DatabaseError: current transaction is aborted, commands ignored until end of transaction block? in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How DatabaseError: current transaction is aborted, commands ignored until end of transaction block Error Occurs?

Today I get the following error DatabaseError: current transaction is aborted, commands ignored until end of transaction block? in python.

How To Solve DatabaseError: current transaction is aborted, commands ignored until end of transaction block Error ?

  1. How To Solve DatabaseError: current transaction is aborted, commands ignored until end of transaction block Error ?

    To Solve DatabaseError: current transaction is aborted, commands ignored until end of transaction block Error In Flask shell, all I needed to do was a session.rollback() to get past this.

  2. DatabaseError: current transaction is aborted, commands ignored until end of transaction block?

    To Solve DatabaseError: current transaction is aborted, commands ignored until end of transaction block Error In Flask shell, all I needed to do was a session.rollback() to get past this.

Solution 1

You only need to run

rollback;

in PostgreSQL and that’s it!

Solution 2

In Flask shell, all I needed to do was a session.rollback() to get past this.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read