{"section":"troubleshooting","requestedLocale":"en","requestedSlug":"my-store-order-was-not-created","locale":"en","slug":"my-store-order-was-not-created","path":"docs/en/troubleshooting/checkout-and-financial/my-store-order-was-not-created.md","branch":"main","content":"When a customer tries to buy a product and an error occurs in creating the order, it can be due to different reasons, such as payment problems, logistics issues, or [backend integrations](/en/docs/tracks/backend-integrations) with ERPs (Enterprise Resource Planning).\n\nBefore considering complex causes for errors with orders that were not created, try the troubleshooting processes presented in this article. Some of the most common error scenarios are:\n\n* The item was not available in the [inventory](/en/docs/tutorials/managing-stock-items), and the store was not configured to sell _out-of-stock_ products.\n* The XML integration was not configured to send information about _out-of-stock_ products.\n\n## Solutions\n\nConsider the following troubleshooting processes for order creation errors:\n\n* [Manage inventory](#manage-inventory): If you have no items for the product in your inventory and your store is not configured to sell _out-of-stock_ products.\n* [Review XML integration](#review-xml-integration): If your XML integration is not configured to send information about products with no inventory.\n\n### Manage inventory\n\nThere are two ways to manage your [inventory](/en/docs/tutorials/managing-stock-items):\n\n* **Via API:** Using the endpoint [Update inventory by SKU and warehouse](https://developers.vtex.com/docs/api-reference/logistics-api#put-/api/logistics/pvt/inventory/skus/-skuId-/warehouses/-warehouseId-).\n* **Via VTEX Admin:** Accessing _Catalog > Inventory > Inventory Management_.\n\nThe following solutions focus on inventory management via VTEX Admin:\n\n* **Update inventory count:** In the line that corresponds to the desired SKU and warehouse, on the _Update Count_ column, type the number of items available for sales, and click `Save`. This number cannot be negative, otherwise you will have a [negative inventory](/en/troubleshooting/my-inventory-is-negative).\n* **Configure unlimited inventory:** In the line that corresponds to the desired SKU and warehouse, on the _Unlimited inventory_ column, turn on the switch, and click `Save`. When this configuration is activated, the item is considered always available for sales and the store never runs _out-of-stock_ for it.\n\n> ℹ️ To configure *out-of-stock* products to be displayed in your storefront, in your VTEX Admin access **Catalog > All Products**, and in the product configuration page, in the **Product** tab, select the checkbox **Yes** for *Show when out of stock*.\n\n### Review XML integration\n\nXML is a markup language that defines and stores data in a shareable manner. When your [store’s XML integration](/en/docs/tutorials/configuring-xml) is not set for certain configurations, it might not be able to export a product information.\n\nAn error with product missing information can happen when the product has no inventory and the integration is not set for sending _out-of-stock_ products. To activate the configuration, follow the steps below:\n\n1. In the VTEX Admin, go to **Store Settings > Channels > XML Integration** or type **XML Integration** in the search bar at the top of the page.\n2. In the line of the desired XML integration, click `Edit`.\n3. In the `Edit XML` tab, for the option **Show unavailable SKUs**, select the checkbox `Show out-of-stock (sold-out) SKUs in the results`.\n4. Click `Save`.\n\n> ⚠️ You can have invoicing errors when trying to invoice an order with incorrect or missing XML information."}