Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Bulk input payload line length limitation

Bulk input payload line length limitation

mcepo
Shopify Partner
5 0 6

Hi,

 

I am trying to create/update products on Shopify using the bulk api. I am getting a error response when running bulkOperationRunMutation.

 

The error is Unexpected file structure - expected JSONL.

 

I have noticed that when i reduce the amount of variants that i am sending so that the size of a single line is under 5000 characters that it runs without issues. So it would seem like there is a limit of 5000 characters per line for bulk api jsonl payload file.

 

This is the first time i am seeing this error and i have had lines with more then 5000 line before that ran without issues.

 

Is this correct is there a line size limit now ?

 

Replies 5 (5)

igordeoliveiras
Tourist
4 0 0

Same problem here,.. all of a sudden,...

Mertl
Shopify Partner
3 0 1

I am seeing the same issue, HOWEVER, my JSONL is registered if the first item is under 5000 characters, regardless of the length of consecutive items.

igordeoliveiras
Tourist
4 0 0

Oh really? I will simulate here,.. and let you guys know..

igordeoliveiras
Tourist
4 0 0

Oh! That worked! Thank you so much! I did that kind of trick adding few caracters at first line and resolved! You saved my life! Thank you again! However, its a Shopify Bug that must be resolved!

 

Thankssss!

Mertl
Shopify Partner
3 0 1

You bet. I was going crazy trying to figure it out too. My first batch would work, then my second batch would fail. Every time...

 

Thanks to Mcepo I was able to figure the bug out!