Menu
Feedback
Start here

Known issues

Known issues
Orders with a 'Creation Error' remain stuck in a 'cancel' status
Order Management
•
ID: 1089344
Backlog
Published on8/29/2024
•
Last updated on8/29/2024
2 min read

Summary

In some orders that present an error at the time of creation (Creation Error - cancellationData.reason), it is expected that these orders will automatically reach the Cancelled status, since they are orders that were incomplete in some way (even if the isCompleted property is true), or with an error in the communication between the systems, mainly in the communication with the Gateway, and end up being canceled.

"cancellationData": { "requestedByUser": false, "requestedBySystem": true, "requestedBySellerNotification": null, "requestedByPaymentNotification": null, "reason": "Creation error", "cancellationDate": "2024-08-13T17:40:23.8875213Z", "cancellationRequestId": null},

In this case, the problem is that currently, some orders with a creation error remain stuck in a "cancel" status, without being able to advance to cancellation.

curl --location 'https://.vtexcommercestable.com.br/api/orders/pvt/document/' --header 'Accept: application/json' --header 'Content-Type: application/json' --header 'VtexIdclientAutCookie: ***' --header 'Cookie: janus_sid=71df74ec-7639-443a-ad33-4f9de2053cba'

"status": "cancel",

"workflowData"."instances"."name": "Marketplace""workflowData"."instances"."currentStepName": "end""workflowData"."instances"."name": "Fulfillment""workflowData"."instances"."currentStepName": "cancel"

The important thing in these cases is to be able to validate that the transaction has already been canceled and that there are no problems with the reservation of the items in the order.

Simulation

If the order is in the "cancel" status and has not advanced to "canceled":

  1. Make a GET of the order and validate the following information:
  • "status"
  • "cancellationData"
  • "workflowData"
  1. If the information in the first step is the same as the details shown in the summary of this problem, it is because your order will not be able to be moved to the status "canceled".

Workaround

We do not have a workaround for this issue at the moment.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback