Solved: ERROR: current transaction is aborted – Redshift

Problem:-

[Amazon](500310) Invalid operation: current transaction is aborted, commands ignored until end of transaction block;

Solution:-

If you are getting the above error while you are connected to Redshift, ensure that you have checked the “Autocommit” box below the “Password” box in SQL Workbench/J connection window. (refer image below)

Once you check the “Autocommit” box try connecting to the Redshift cluster again.