{"section":"known-issues","requestedLocale":"en","requestedSlug":"transaction-stuck-in-cancelling-and-cancelrefund-return-object-reference-not-set-to-an-instance-of-an-object","locale":"en","slug":"transaction-stuck-in-cancelling-and-cancelrefund-return-object-reference-not-set-to-an-instance-of-an-object","path":"docs/en/known-issues/Payments/transaction-stuck-in-cancelling-and-cancelrefund-return-object-reference-not-set-to-an-instance-of-an-object.md","branch":"main","content":"## Summary\n\nOrders get stuck in the **“Canceling”** status when the related transaction remains in **“Cancelling”**. All attempts to cancel or refund the transaction fail, returning the error **\"Object reference not set to an instance of an object.\"**\n\n## Simulation\n\nIt is not possible to simulate.\n\n## Workaround\n\nTo manually complete the post-purchase flow for a stuck transaction, execute one of the following APIs:\n\n- **Cancel the transaction:**`POST /api/pvt/transactions/{transactionId}/cancellation-request` 🔗 API reference: https://developers.vtex.com/docs/api-reference/payments-gateway-api#post-/api/pvt/transactions/-transactionId-/cancellation-request\n- **Refund the transaction**: `POST /api/pvt/transactions/{transactionId}/refunding-request` 🔗 API reference: https://developers.vtex.com/docs/api-reference/payments-gateway-api#post-/api/pvt/transactions/-transactionId-/refunding-request"}