# Why I receive “Something went wrong” error when proceeding to checkout?

During the checkout process, the app may occasionally lag, displaying the error message **“Something Went Wrong. What Happened? This Invoice Is Not Available Yet, Please Try Again Later.”**

When there is a delay in execution, the cart items are not recognized, resulting in this error. It is crucial to remember that this problem only affects apps that employ draft orders. You can click this [**link**](https://community.shopify.com/c/shopify-discussions/something-went-wrong-what-happened-this-invoice-is-not-available/td-p/2073187) to learn more about this mistake and how it occurs in other apps that use draft orders.

<figure><img src="/files/GNM53dgQNT2wr6AR1HtV" alt=""><figcaption></figcaption></figure>

This is a result of a recent modification to Shopify’s invoice creation process for draft orders. The app creates and transfers your discount to Shopify’s checkout via draft orders. But now, it takes a little longer for Shopify to process this, which can result in these problem messages showing up.

#### ***So what should we do in this case?***

1. You can try duplicating the theme you’re using and apply our Sami Wholesale app to that new theme to see if the checkout process works fine again.&#x20;
2. Contact our Support team (**<support@samita.io>**) immediately to get a proper support. We will try customizing codes to your theme to change the process time of creating draft order so as to match the way Shopify deals with the checkout process.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.samita.io/samita-wholesale-b2b/faqs/why-i-receive-something-went-wrong-error-when-proceeding-to-checkout.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
