Back to Community
1

'Delete draft' button doesn't work

Tried to delete draft of accounts but won't work and following message appears - "Error: Failed to delete draft: SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`tinytax`.`submissions`, CONSTRAINT `submissions_form_data_fk` FOREIGN KEY (`form_data_id`) REFERENCES `form_data` (`id`))"

Would be great if this could be fixed! Thank you

4 Comments

T
Tim Fouracre Staff 28 Nov 2025 at 13:19
Please try again - should work now.
M
Mairead Ryan 28 Nov 2025 at 13:46
Just tried again after logging out and in again and same issue :(

Message:

Error: Failed to delete draft: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`tinytax`.`form_data`, CONSTRAINT `form_data_ibfk_1` FOREIGN KEY (`submission_id`) REFERENCES `submissions` (`id`) ON DELETE CASCADE)
T
Tim Fouracre Staff 28 Nov 2025 at 14:03
That's gone through now - the draft should have disappeared.
M
Mairead Ryan 28 Nov 2025 at 14:13
Draft now disappeared. Thanks Tim!