Hi Guys, while importing data from csv file through a customized function, i am getting this error,
current transaction is aborted commands ignored until end of transaction block
I know this is due to some DB operation occuring in a Transaction(where previous operation had some issue in same transaction)
so i can keep and exception to handle this.
But i would like to have a better way to handle this exception or is there any particular exception handler to handle this kind of Exception.
any help would be appreciated.
You should also try looking at the PostgreSQL logs to check what's causing the exception