# \[Solved\] How can I correct IAP error - "Must query store before purchase"?

**URL:** https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162
**Category:** In App Purchase
**Tags:** error
**Created:** [February 26, 2022, 8:42pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162 "2022-02-26T20:42:57Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![ronnie](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ronnie/32/121539_2.png) [@ronnie](https://community.thunkable.com/u/ronnie)
#### Post date: [March 5, 2022, 2:06am UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/21 "2022-03-05T02:06:44Z")

</div>

Has this been figured out? Mine has been working since my last update. It looks like you’re doing everything correctly, @jared. I had that problem when I first started working on it, but I was failing to query my list of items. Once I got that figured out, it all worked ok.

Sorry I haven’t been on much. Work keeps me busy during the week and light chasing occupies most of my weekends…

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 5, 2022, 2:14am UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/22 "2022-03-05T02:14:36Z")

</div>

It’s working well for me now!!!

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 11:24am UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/23 "2022-03-08T11:24:45Z")

</div>

What was the solution? I have the issue and I cant figure out what’s wrong

---

<div class="post-metadata">

### Author: ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)
#### Post date: [March 8, 2022, 11:40am UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/24 "2022-03-08T11:40:24Z")

</div>

Latest thunkable platform update (v305-5-prod) has fixed it for me. If you re-publish now to testflight it should work.

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 12:09pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/25 "2022-03-08T12:09:48Z")

</div>

can you send me how to set up the blocks? i have re-published like 20 times and it still doesn’t work

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 8, 2022, 12:10pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/26 "2022-03-08T12:10:19Z")

</div>

Can you show what you’ve tried?

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 12:12pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/27 "2022-03-08T12:12:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b77a19d0c0fe394e053df364d971f435cc55b131.png)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b77a19d0c0fe394e053df364d971f435cc55b131.png)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 8, 2022, 12:16pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/28 "2022-03-08T12:16:06Z")

</div>

Are you getting error messages?

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 12:16pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/29 "2022-03-08T12:16:48Z")

</div>

on thunkable yes, but not related to the purchase block,  
and on ios the must query item from store one

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 8, 2022, 12:34pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/30 "2022-03-08T12:34:53Z")

</div>

Are you testing app builds from TestFlight or the ones we email to you?

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 12:35pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/31 "2022-03-08T12:35:00Z")

</div>

via test flight

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 12:58pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/32 "2022-03-08T12:58:52Z")

</div>

is there anything else i can try?

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [March 8, 2022, 1:10pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/33 "2022-03-08T13:10:17Z")

</div>

I just sent a new version to the App Store to see if I’m having the same issue. If I can replicate, I can help troubleshoot.

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 1:10pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/34 "2022-03-08T13:10:59Z")

</div>

Okay Thank You

---

<div class="post-metadata">

### Author: ![nikolasloucaniq95j](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nikolasloucaniq95j](https://community.thunkable.com/u/nikolasloucaniq95j)
#### Post date: [March 8, 2022, 2:00pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/35 "2022-03-08T14:00:11Z")

</div>

So? Did it work?

---

<div class="post-metadata">

### Author: ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)
#### Post date: [March 8, 2022, 2:36pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/36 "2022-03-08T14:36:56Z")

</div>

Please be patient, these things can take time.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [June 6, 2022, 2:37pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/37 "2022-06-06T14:37:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![exploriverse.com](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/exploriverse.com/32/77609_2.png) [@exploriverse.com](https://community.thunkable.com/u/exploriverse.com)
#### Post date: [June 15, 2022, 10:55pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/38 "2022-06-15T22:55:35Z")

</div>

@jared I pushed my iOS app live and it does not work. This is the error I get when I make a purchase. It seemed to work on testflight.

 ![IMG_2878.PNG](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/2/b2f70243a109791fb5ae6a52ab8cd40b8bf7f201.jpeg)

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [June 16, 2022, 11:55am UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/39 "2022-06-16T11:55:49Z")

</div>



---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [June 16, 2022, 12:02pm UTC](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162/40 "2022-06-16T12:02:07Z")

</div>

If you just pushed a new version out that was reviewed, there’s a chance your iap was rejected. Can you share a screenshot of the IAPs your [appstoreconnect](https://appstoreconnect.apple.com/apps/1609501312/appstore/iaps) dashboard?

This is mine currently

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/145a296bff9a89510bbe424e90c6deb6a3a41d1b.jpeg)

I would expect the product with id consumable would _not_ be purchaseable **right now due to issues.** are yours all green?

As an aside: I recommend that everybody setting up IAP in their aps have an IAP test screen to make initial testing/troubleshooting easier .

[Previous page](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162.md?page=1)

[Next page](https://community.thunkable.com/t/solved-how-can-i-correct-iap-error-must-query-store-before-purchase/1757162.md?page=3)
