Shopify "Price can't be blank" Import Error: Fix
Shopify's product importer checks the price, stock count and stock policy on every line. When one of them is missing or in the wrong form, the import stops with one of these messages:
- Validation failed: price can't be blank
- Inventory quantity can't be blank
- Inventory quantity is not a number
- Inventory policy is not included in the list
Shopify's common import issues page lists all four, with one line on each. The columns they refer to are described on Shopify's product CSV page.
Which columns do these errors refer to?
Shopify's current product template names the columns Price, Inventory quantity, Inventory tracker and Continue selling when out of stock. Older files, including the header line quoted on Shopify's error page, call them Variant Price, Variant Inventory Qty, Variant Inventory Tracker and Variant Inventory Policy. Either way, each row of a product with variants carries its own values, so check every variant row, not just the first one.
How do I fix "Validation failed: price can't be blank"?
Shopify's help says the price needs to be added to that line. To fix it:
- Find the rows with an empty price. Sort or filter the file by the price column so the blank cells come together.
- Enter each price as a plain number. Shopify's product CSV page says to include only the monetary value, without a currency symbol, for example
9.99. Write24.99, not$24.99or24.99 USD. - Import again.
The same page says a price defaults to 0.00 if no value is entered. So even where a blank price doesn't stop the import, that variant would sell for 0.00. Fill every price before you import.
How do I fix "Inventory quantity can't be blank"?
Shopify's help says the inventory quantity needs to be set when inventory is tracked. If you're not tracking inventory, leave the Inventory tracker column blank. So there are two fixes, depending on the product:
- You track stock for it. Enter the number of items you have in the quantity column. Shopify's product CSV page notes that this column applies only to stores with a single location.
- You don't track stock for it. Clear its
Inventory trackercell. Shopify's valid values for that column areshopify,shipwire,amazon_marketplace_web, or blank if inventory isn't tracked.
A supplier file often leaves the stock cell empty for items it doesn't count, while your tracker column says shopify on every row. Those rows are the ones to fix.
What causes "Inventory quantity is not a number"?
Shopify's help says you need to enter a number value for the quantity of items in stock. Supplier files often put something else in that cell:
- A unit after the number, such as
10 pcsor24 units. Keep the number alone:10. - A word instead of a count, such as
In stock,AvailableorOut of stock. Shopify needs a real count. Ask the supplier for one, or leave the tracker blank for that product if you don't track its stock. - A dash or a note, such as
-,n/aorcall. Replace it with a number.
How do I fix "Inventory policy is not included in the list"?
Shopify's help says the inventory policy needs to be set to deny or continue. On Shopify's product CSV page, that's the Continue selling when out of stock column:
denymeans the variant can't be bought once its inventory reaches 0. Shopify lists it as the default.continuemeans it can still be bought after it reaches 0, and the inventory shows as negative.
Supplier files tend to use Yes and No, True and False, or words like Backorder. Find and replace them with continue or deny in that column, then import again.
How does Csvio handle prices and stock?
Csvio is a Shopify app that imports supplier files into your store. It cleans these values as it reads the file, and shows you what it changed on the preview before anything is sent to Shopify.
- Prices keep only the number. Csvio reads the one number in a price cell, so
$24.99becomes24.99and$10.99/lbbecomes10.99. A cell with two numbers, such aswas $15 now $10, has its price left blank and is listed for you to check. - Products with no price are named. When a product has a variant with no price, the review screen shows a notice such as 3 products have no price and names them. It doesn't stop the import, so you can map a price column, or set their prices in Shopify before you publish them. New products are created as drafts unless you choose another status.
- Quantities keep only the whole number.
10 pcsbecomes10and4.00becomes4. A value that isn't a count, such asIn stockor10.5, is left blank. A blank quantity doesn't stop the import: the product is created and Csvio sends no stock count for that variant. - Supplier policy words are translated. In the inventory policy column,
Yes,True,Allow,BackorderandNotifybecomecontinue, andNo,FalseandStop sellingbecomedeny. A value it doesn't recognise is left blank.
Every value Csvio cleaned or couldn't read is counted in the Data cleaning card on the preview, by column, with examples of the values it left blank.
A blank inventory policy can be filled from your import defaults. Set Inventory policy once in Settings, then Defaults, and it fills every blank policy cell; a value in your file always wins. Inventory tracking works the same way for a file with no tracker column. See Set default values for Shopify product imports. Stock counts go to the Shopify location you choose for the import, covered in Manage Shopify locations for inventory imports.
Can I try Csvio on the file Shopify rejected?
Csvio's free plan imports 30 products a month across up to 3 imports, which is enough to see how it reads your prices and stock. Upload the file as it is, check the preview, and nothing reaches your store until you confirm.