Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed trasaction aborted issue in bulk operation #38

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

aasif-patel
Copy link
Collaborator

@aasif-patel aasif-patel commented Nov 11, 2024

Solved transaction aborted issue

issue=> 8848digital/erpnext#481

Desc
The error psycopg2.errors.InFailedSqlTransaction with the message current transaction is aborted, commands ignored until end of transaction block usually indicates that an earlier SQL operation in the current transaction failed, which causes subsequent queries to be ignored because the transaction is already in a failed state.

In PostgreSQL, when a transaction encounters an error, it is marked as "failed." Any further SQL operations within this transaction will be ignored until the transaction is rolled back. In the Frappe framework, if an exception occurs during a database operation and you do not explicitly handle it, the current transaction may remain in a failed state.

@Satya8848 Satya8848 merged commit 5802aee into pre-prod Nov 12, 2024
13 of 14 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants