> For the complete documentation index, see [llms.txt](https://changelog.usetoggle.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://changelog.usetoggle.com/november-2025/fix-orphaned-orders-and-duplicate-transaction-reference-errors.md).

# Fix orphaned orders and duplicate transaction reference errors

:bug: We had a bug where if a merchant submitted a duplicate transaction reference, they were presented with a 500 error and an orphaned order row was created in the DB. This has now been resolved and the merchant received a validation error on the merchant\_transaction\_reference field instead. No orphaned order row is created. This also resolved a problem where a lot of accounts couldn't run data exports.&#x20;

🧑‍💻 Jules
