# Error when trying to Get many orders from Shopify with an option

**URL:** <https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469>\
**Category:** Questions\
**Tags:** shopify\
**Created:** [August 17, 2023, 2:04pm UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469 "2023-08-17T14:04:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gbconsultant](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@gbconsultant](https://community.n8n.io/u/gbconsultant)\
**Post date:** [August 17, 2023, 2:04pm UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/1 "2023-08-17T14:04:24Z")

</div>

Hey,

I would like to return all orders from Shopify that were processed after a certain date. However, n8n returns me an error. It seems the node is not able to handle the pagination correctly when there is an option and that return all is checked.

I wanted to go around the problem by doing custom api calls and handling the pagination with a loop but it is tricky and way more complicated.

If anyone has a suggestion on how to handle it, that would be great.

Thanks.

Guillaume

 ![Capture d’écran 2023-08-17 à 15.59.11](https://europe1.discourse-cdn.com/n8n/original/3X/4/e/4e4e8da364d3970428f994a5e6d57eb6abd6e084.png)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 18, 2023, 11:02am UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/3 "2023-08-18T11:02:26Z")

</div>

Hey @gbconsultant,

Welcome to the community 🙌

It looks like you would need to manually build out the API call at the moment or not include the processed at min and use a filter node to get the information.

It looks like the fix for this might be fairly quick, I will take a look this afternoon.

---

<div class="post-metadata">

**Author:** ![gbconsultant](https://avatars.discourse-cdn.com/v4/letter/g/85f322/32.png) [@gbconsultant](https://community.n8n.io/u/gbconsultant)\
**Post date:** [August 18, 2023, 11:56am UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/4 "2023-08-18T11:56:10Z")

</div>

Hi John, thanks for getting back.

I tried to handle it manually with API calls but the pagination structure in Shopify combined with my lack of coding skills makes it difficult. If you manage to fix the issue on your end that would be great 🙏

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [August 18, 2023, 1:17pm UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/5 "2023-08-18T13:17:08Z")

</div>

Hey @gbconsultant,

I have put in the PR below which once reviewed will be merged for a future release, I suspect this will make it into 1.4.0 next week.

> <https://github.com/n8n-io/n8n/pull/6972>
>
> Github issue / Community forum post (link here to close automatically): https://…community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [August 30, 2023, 9:02am UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/6 "2023-08-30T09:02:39Z")

</div>

New version [`n8n@1.4.1`](https://github.com/n8n-io/n8n/releases/tag/n8n%401.4.1) got released which includes the [GitHub PR 6972](https://github.com/n8n-io/n8n/pull/6972).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [November 28, 2023, 9:03am UTC](https://community.n8n.io/t/error-when-trying-to-get-many-orders-from-shopify-with-an-option/29469/7 "2023-11-28T09:03:05Z")

</div>

Closed on November 28, 2023, 9:03am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
