Printify error, variable must be an integer

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.



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.

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

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
(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

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!

3 Likes

@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.

2 Likes

Here is a screenshot with map turned off - 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 (123.3 KB)

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


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
URL at the top of this image here: 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

Create the product: https://i.imgur.com/gtHyg6u.png

Proper ID based on the uploaded image ID

Print Result: https://i.imgur.com/K0Xpu9W.png

Here is the EXACT blueprint for the one i’m testing right now
blueprint (3).json (59.5 KB)

1 Like

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.

2 Likes

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 (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.

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!

4 Likes

Hey there @Overkill_Gaming :wave:

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. :clap:

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! :sunflower:

2 Likes