Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Error in viewing the orders UI after requesting the invoice via App
Error in viewing the orders UI after requesting the invoice via App
ID: 1070299
Backlog
Published on 7/24/2024
Last update on 7/24/2024

Summary

When we execute a change V2 by removing or adding an item to an order, we create a change in the list of items in the order, which can increase or decrease the number of indexes in the list of items in the json. This change, in turn, may not be consumed by all the apps or databases involved in handling the order, such as the invoice notifier app;

As a result, by requesting the invoice via the invoice notifier app before having carried out an action to remove or add an item, the user ends up causing a breakage scenario in the UI, as the invoice notifier app starts to return an error due to having more or fewer items than expected by the UI, resulting in a “null reference” error which prevents the order from being displayed in the UI;

Simulation

NOTE: To simulate this scenario, you must have configured the invoice notifier app and also be using the Change V2 flow;

  • In an order with more than one item, go to the handling status;

  • From the UI, click on the “Request invoice” option (Notify your ERP).

  • Before the invoice is returned by the ERP, make a change to the order by removing or adding any item to the order;

  • Wait until the ERP sends the invoice to the Orders system, then access the order again from the Orders UI, at which point the UI will return an error message and the order cannot be displayed;

Workaround

Make the invoice request via invoice-notifier only after performing the change of order items.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback