{"record":{"id":"d690e9b138401858","repo":"hibernate/hibernate-orm","slug":"action-was-vetoed-entityaction-d690e9","errorCode":null,"errorMessage":"Action was vetoed: ${entityAction}","messagePattern":"Action was vetoed: (.+?)","errorType":"exception","errorClass":"EntityActionVetoException","httpStatus":null,"severity":"error","filePath":"hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueueLegacy.java","lineNumber":314,"sourceCode":"\t\t\tACTION_LOGGER.executingIdentityInsertImmediately();\n\t\t\texecute( insert );\n\t\t}\n\t\telse {\n\t\t\tACTION_LOGGER.addingResolvedNonEarlyInsertAction();\n\t\t\tOrderedActions.EntityInsertAction.ensureInitialized( this );\n\t\t\tinsertions.add( insert );\n\t\t}\n\t\tif ( !insert.isVeto() ) {\n\t\t\tinsert.makeEntityManaged();\n\t\t\tif ( unresolvedInsertions != null ) {\n\t\t\t\tfor ( var resolvedAction :\n\t\t\t\t\t\tunresolvedInsertions.resolveDependentActions( insert.getInstance(), session ) ) {\n\t\t\t\t\taddResolvedEntityInsertAction( resolvedAction );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new EntityActionVetoException( insert );\n\t\t}\n\t}\n\n\t/**\n\t * Adds an entity (IDENTITY) insert action\n\t *\n\t * @param action The action representing the entity insertion\n\t */\n\tpublic void addAction(EntityIdentityInsertAction action) {\n\t\tACTION_LOGGER.addingEntityIdentityInsertAction( action.getEntityName() );\n\t\taddInsertAction( action );\n\t}\n\n\t/**\n\t * Adds an entity delete action\n\t *\n\t * @param action The action representing the entity deletion\n\t */","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/hibernate/hibernate-orm/blob/fad1729dce015f908198d57a8d80274a30f905a5/hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueueLegacy.java#L296-L332","documentation":"Error \"Action was vetoed: ${entityAction}\" thrown in hibernate/hibernate-orm.","triggerScenarios":"Thrown at hibernate-core/src/main/java/org/hibernate/engine/spi/ActionQueueLegacy.java:314 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the veto reason and resolve the conflicting queued action before re-executing","Avoid scheduling contradictory operations on the same entity within one flush"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fad1729dce015f908198d57a8d80274a30f905a5","analyzedAt":"2026-08-22T04:13:57.527Z","schemaVersion":2},"datasetVersion":"2026-08-22T09:17:25.309Z"}