# Printify error, variable must be an integer

**URL:** <https://community.make.com/t/printify-error-variable-must-be-an-integer/19784>\
**Category:** Questions\
**Tags:** error\
**Created:** [November 16, 2023, 11:59pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784 "2023-11-16T23:59:01Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Overkill\_Gaming](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@Overkill\_Gaming](https://community.make.com/u/Overkill_Gaming)\
**Post date:** [November 16, 2023, 11:59pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/1 "2023-11-16T23:59:01Z")

</div>

Running into an error when trying to print a shirt onto printify

> - The operation failed with an error. [400] variants.0.id: The variants.0.id must be an integer. | variants.1.id: The variants.1.id must be an integer. | variants.2.id: The variants.2.id must be an integer. | variants.3.id: The variants.3.id must be an integer. | variants.4.id: The variants.4.id must be an integer. | variants.5.id: The variants.5.id must be an integer. | variants.6.id: The variants.6.id must be an integer. | variants.7.id: The variants.7.id must be an integer. | variants.8.id: The variants.8.id must be an integer. | variants.9.id: The variants.9.id must be an integer. | variants.10.id: The variants.10.id must be an integer. | variants.11.id: The variants.11.id must be an integer.

 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/b/5/b58a6809fdc1075aa841d419cda896cb3e23aef8.png)  
 ![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/d/9/d972072ac5ed63f08d453427e4d09079b4e17486.png)  
I rebuilt the module a few times, but continue getting this…

I had MAP turned off and manually chose the color/size in there but it changes to map no matter what i do.

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [November 17, 2023, 12:10am UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/2 "2023-11-17T00:10:05Z")

</div>

Well, that definitely looks like an integer, but might be sent as a string type.

Try using `parseNumber` to force it into a number, and/or ensure no whitespace is after the numbers.

![Screenshot_2023-11-17_081135](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/4/34ffbeba687db4e525423dc3881202a6b8900c01.png)

If you need further assistance, please provide the following:

## 1. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

 ![Screenshot_2023-08-24_230826](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/2/2ff55ee04419049c127f183db2b3eebfbbbbfc64.png)  
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

> blueprint.json (12.3 KB)

## 2. And most importantly, Output bundles

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a `bundle.json` file, and upload it here into this discussion thread.

 ![Screenshot_2023-10-06_141025](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/8/2876156ab3ea5bc9e40bbc0edfb9f025406b7c48.png)

Providing the output bundles will allow others to _replicate_ what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

---

<div class="post-metadata">

**Author:** ![Bjorn.drivn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/bjorn.drivn/32/4503_2.png) [@Bjorn.drivn](https://community.make.com/u/Bjorn.drivn)\
**Post date:** [November 17, 2023, 8:26am UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/3 "2023-11-17T08:26:21Z")

</div>

@Overkill_Gaming Can you turn off Map and show us what happens? Maybe in a short video.

Either there is a data type mismatch (bug) in the module, or maybe you could be using an incorrect value and it’s expecting something else.

---

<div class="post-metadata">

**Author:** ![Overkill\_Gaming](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@Overkill\_Gaming](https://community.make.com/u/Overkill_Gaming)\
**Post date:** [November 17, 2023, 5:27pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/4 "2023-11-17T17:27:25Z")

</div>

Here is a screenshot with map turned off - [https://i.imgur.com/uHOSb0S.png](https://i.imgur.com/uHOSb0S.png) and map on underneath on variable 2.

@samliew Here is the blueprint if you want to take a look at it.

[blueprint (1).json](https://community.make.com/uploads/short-url/yWyJHo5xFeHlR0Q7OKhuc3BrAFf.json) (123.3 KB)

---

<div class="post-metadata">

**Author:** ![Overkill\_Gaming](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@Overkill\_Gaming](https://community.make.com/u/Overkill_Gaming)\
**Post date:** [November 17, 2023, 7:09pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/5 "2023-11-17T19:09:24Z")

</div>

Finally got it working but it’s printing blank apparel.

![](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/a/6/a67f849b83829ad0c4455ede9193969a6fe03c6d.png)  
Is it an issue with stable diffusion, or an issue with it registering the “RAW TEXT” since it doesn’t name it “URL”?

It does upload the image properly: [https://i.imgur.com/QqXYype.png](https://i.imgur.com/QqXYype.png)  
URL at the top of this image here: [https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/0-33f9224d-0d9f-454c-948c-b798af448e84.png](https://pub-3626123a908346a7a8be8d9295f44e26.r2.dev/generations/0-33f9224d-0d9f-454c-948c-b798af448e84.png)

But the preview doesn’t appear correct, Preview URL here: [https://pfy-prod-image-storage.s3.us-east-2.amazonaws.com/15436587/be5f9b09-0310-45a9-b5a5-333970ae4c4d](https://pfy-prod-image-storage.s3.us-east-2.amazonaws.com/15436587/be5f9b09-0310-45a9-b5a5-333970ae4c4d)

Create the product: [https://i.imgur.com/gtHyg6u.png](https://i.imgur.com/gtHyg6u.png)

Proper ID based on the uploaded image ID

Print Result: [https://i.imgur.com/K0Xpu9W.png](https://i.imgur.com/K0Xpu9W.png)

Here is the EXACT blueprint for the one i’m testing right now  
[blueprint (3).json](https://community.make.com/uploads/short-url/xueWQehISnQVrh2YmuzkipRrjHm.json) (59.5 KB)

---

<div class="post-metadata">

**Author:** ![Bjorn.drivn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/bjorn.drivn/32/4503_2.png) [@Bjorn.drivn](https://community.make.com/u/Bjorn.drivn)\
**Post date:** [November 18, 2023, 11:16am UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/6 "2023-11-18T11:16:43Z")

</div>

Try using static values first, see what works and what doesn’t. Then you can figure out if its an issue with the data you are providing (so the workflow) or if its an issue at the side of printify.

---

<div class="post-metadata">

**Author:** ![Overkill\_Gaming](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@Overkill\_Gaming](https://community.make.com/u/Overkill_Gaming)\
**Post date:** [November 18, 2023, 8:06pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/7 "2023-11-18T20:06:49Z")

</div>

I tried static, but it automatically switched the map input afterwards when i close the module by accepting the changes with the “OK” button.

I fixed MOST of my issues, but here’s a new one for ya…

EVERYTHING succeeded, but it’s printing a blank shirt on printify…

[blueprint (5).json](https://community.make.com/uploads/short-url/27mGVxnZwagU3741i9D5TwKqIla.json) (60.0 KB)

This is the same issue as above, but a more… BASIC scenario… It’s something to do with stable diffusion mixed with printify i’m guessing? If i use generic chatgpt/openai it prints.

---

<div class="post-metadata">

**Author:** ![Overkill\_Gaming](https://avatars.discourse-cdn.com/v4/letter/o/838e76/32.png) [@Overkill\_Gaming](https://community.make.com/u/Overkill_Gaming)\
**Post date:** [November 18, 2023, 10:58pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/8 "2023-11-18T22:58:50Z")

</div>

Solution: Had to add a “SLEEP” between uploading the image on printify and creating the product for 60 seconds. Gives time for the image to upload and update!

Not sure how to close this but if there is a way feel free to tag me and I’ll close it out.

Thanks for all the assistance everyone!

---

<div class="post-metadata">

**Author:** ![vendy](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/vendy/32/12635_2.png) [@vendy](https://community.make.com/u/vendy)\
**Post date:** [November 20, 2023, 9:05am UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/9 "2023-11-20T09:05:46Z")

</div>

Hey there @Overkill_Gaming 👋

just thought I might step in and pat you on the back for the great job you did while figuring out these troubles with the help of our amazing @Bjorn.drivn and @samliew. 👏

Thank you so much for coming back here and sharing the solution with us. This way we keep our community tidy and neat for other users and their search for solutions.

Keep up the great work! 🌻

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [December 2, 2023, 11:07pm UTC](https://community.make.com/t/printify-error-variable-must-be-an-integer/19784/10 "2023-12-02T23:07:16Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


