Bulk import and export with CSV

SAKU Food Labeling: How to import and export food labels with CSV

  • Clearly show food labels and allergens on product pages

  • Search products by conditions like “egg-free, dairy-free”

  • Bulk add, update, and export with CSV

NEW
NEW
SAKU Food Labeling: How to import and export food labels with CSV

App features

[Basic plan]
• Show food labeling (name, ingredients, net quantity, storage method, and more) and nutrition facts on product pages
• Supports the 29 specified allergenic ingredients (Japan)
• Product search by multiple conditions such as “egg-free, dairy-free”
• Bulk add, update, and export with CSV
• Add shared ingredients to multiple products with the ingredient master
• $4.99/mo or $49.9/yr (7-day free trial)

Note
Please do the final check of the displayed content yourself. The app does not judge or guarantee legal compliance, and does not calculate nutrition values.

For stores with many products, this article explains how to register food labels, allergens and nutrition facts in bulk with a CSV file. If you follow the steps in this article, you can register your data as is.


Overall flow

First, here is how the CSV registration works from start to finish.

  1. On the app's "CSV import/export" (CSV一括登録・書き出し) page, you download the "CSV with products", a file that contains all the products in your store.
  2. You open the downloaded file in Excel or Google Sheets.
  3. You fill in the food label columns, such as product type name, ingredients and allergens, for each product.
  4. You save the file in "CSV UTF-8" (CSV) format.
  5. You put the file in the box on the same page and click "Import and register" (読み込んで登録). The contents are registered to your products.
  6. You check the results on the page. If any rows have errors, you fix only those rows and upload again.

To make this work, follow these steps.

  1. Download the CSV with products
  2. Open the file
  3. Fill in the food labels
  4. Save in CSV format
  5. Upload and register
  6. Check the results


What you need before you start

  • SAKU Food Labeling installed
  • Software that can open and edit CSV files (Excel or Google Sheets)
  • The food label information for each product (product type name, ingredients, allergens, and so on)

In this article

  • The CSV workflow (download → fill in → upload)
  • How to fill in each column, and which words you can use
  • How to open and save the file in Excel or Google Sheets
  • How to read the results, and how to fix common errors

Note: the app's admin screens and the CSV column names are in Japanese. Button names are shown in English with the Japanese label in parentheses. Column names and fixed values must be written in Japanese exactly as shown below.

Where to go: Shopify admin → Apps → SAKU Food Labeling → "CSV import/export" (CSV一括登録・書き出し) in the left menu

The CSV import/export page


1️⃣ Download the CSV with products

① Open "CSV import/export" (CSV一括登録・書き出し).
In the left menu of the "SAKU Food Labeling" app, click "CSV import/export".

② Under "1. Download CSV with products" (1. 商品入りCSVをダウンロード), click the "Download CSV with products" (商品入りCSVをダウンロード) button.
A file (saku-food-products-1.csv) is saved containing the name, handle and SKU of every product in your store, plus any food labels you've already registered.

③ When the file is saved, step 1 is done.

  • Each file can have up to 5,000 rows and 5 MB. If you have many products, "Download next CSV (2)" (次のCSV(2)をダウンロード) appears, so download that too.
  • If you only want products that already have labels, open "Encoding and other exports" (文字コード・その他の書き出し) at the bottom of the page and use "Export filled-in products only" (入力済みだけを書き出し).
  • If you want an example, use "Download example" (記入例をダウンロード) in the same place to get a file with one example row.
  • If a product's food label data has values that can't be read, that product isn't exported, and "N products were not exported" (書き出さなかった商品がN件あります) appears, with a list of the product names (up to 10). Re-enter and save the food label on the product's edit page, and it can be exported again.
  • Always edit the "CSV with products". In any other CSV, a row with empty food label columns is treated as deleting that product's food label.


2️⃣ Open the file

Open the downloaded file in Excel or Google Sheets.

① Open the file with the software you use.

  • Excel: double-click the downloaded file to open it (the CSV with products is UTF-8 with BOM, so Excel can open it).
  • Google Sheets: choose "File" → "Import" → "Upload", select the file, and open it with "Create new spreadsheet".

② Check the layout of the table.
Row 1 has the column names. From row 2 on, each row is one product. If column A has the product name (reference), column B the handle and column C the sku, step 2 is done.


3️⃣ Fill in the food labels (this is the most important part)

Under "2. Enter food labels and allergens" (2. 食品表示・アレルゲンを入力) on the app's page, there is a sample CSV table. Keep columns A–C (product name (reference), handle, sku) as they are, and enter the food labels in the columns to the right: column D (名称), column E (原材料名), column F (添加物), column G (アレルゲン), and so on.

① With the file still open in Excel or Google Sheets, choose the rows of the products you want to fill in.

② Follow the 3 rules below and enter data in the cells from column D onward.

  1. Don't change row 1 (the column names) or columns A–C (商品名(参照用) product name (reference), handle, sku).
  2. In columns with fixed values, write only the words in the table. (Rows with other words cause errors and aren't imported.)
  3. You can leave fields you don't need empty. However, for products that already have labels, any field you leave empty is deleted.

Other points to note:

  • Separate allergens with "、".
  • Rows where all the food label columns are empty are not changed (they are skipped).
  • The product name (column A) isn't registered as the "名称" (product type name) of the food label. Write the product type name in the "名称" column (column D).

③ When you have filled in all the rows you want, step 3 is done.

How to fill in each column (columns in bold accept fixed values only). You can also check this on the page under "Open input rules (how to write each column, allowed words, nutrition format)" (入力ルールを開く(各列の書き方・使える語・栄養成分の書き方)).

Column Column name How to fill it in Example
A 商品名(参照用)
(product name, reference)
Don't change (not imported) バタークッキー 6枚入り
B handle Don't change (used to identify the product) butter-cookie
C sku Don't change COOKIE-001
D 名称
(product type name)
Free text 焼菓子
E 原材料名
(ingredients)
Free text (separated by "、") 小麦粉、バター、砂糖、卵
F 添加物
(additives)
Free text 膨張剤
G アレルゲン
(allergens)
The official names of the 29 items, separated by "、" 小麦、乳、卵
H アレルゲン確認範囲
(allergen check scope)
Empty / 9品目 / 29品目 29品目
I 原料原産地名
(origin of main ingredient)
Free text 小麦粉(国内製造)
J 内容量
(net contents)
Free text 8個入
K 期限種別
(date type)
消費期限 (use-by date) / 賞味期限 (best-before date) 賞味期限
L 期限表記
(date text)
Free text 枠外下部に記載
M 保存温度帯
(storage temperature)
常温 (room temperature) / 冷蔵 (refrigerated) / 冷凍 (frozen) 常温
N 保存方法テキスト
(storage instructions)
Free text 直射日光・高温多湿を避けて保存
O 原産国名
(country of origin)
Free text 日本
P 表示責任者区分
(responsible party type)
製造者 (manufacturer) / 加工者 (processor) / 販売者 (seller) / 輸入者 (importer) 製造者
Q 表示責任者名称
(responsible party name)
Free text 株式会社サンプル
R 表示責任者所在地
(responsible party address)
Free text 東京都〇〇区…
S アレルゲン注意喚起
(allergen advisory)
Free text (optional) 同じ設備でえび・かにを使用しています。
T 栄養_基準
(nutrition basis)
100g / 100ml / 1個 (1 piece) / 1袋 (1 bag) / 1本 (1 bottle or stick) / 1食 (1 serving) (you can also add "あたり" (per)) 1個
U 栄養_推定値
(estimated values)
"推定" if the values are estimates, empty if not set ("推定値", "○", "1", "true", "はい" and "yes" also mean estimated values. Any other word means not estimated) 推定
V 栄養成分
(nutrition facts)
"item name=value unit", separated by half-width ";" 熱量=120kcal; たんぱく質=2.1g; 脂質=7.5g

How to fill in the allergen column

  • Only the official names of these 29 items can be used: えび (shrimp), カシューナッツ (cashew nut), かに (crab), くるみ (walnut), 小麦 (wheat), そば (buckwheat), 卵 (egg), 乳 (milk), 落花生 (peanut), アーモンド (almond), あわび (abalone), いか (squid), いくら (salmon roe), オレンジ (orange), キウイフルーツ (kiwi fruit), 牛肉 (beef), ごま (sesame), さけ (salmon), さば (mackerel), 大豆 (soybean), 鶏肉 (chicken), バナナ (banana), ピスタチオ (pistachio), 豚肉 (pork), マカダミアナッツ (macadamia nut), もも (peach), やまいも (yam), りんご (apple), ゼラチン (gelatin)
  • Other spellings such as "たまご", "鶏卵", "乳成分", "エビ" and "海老" cause errors. Write them as "卵", "乳", "えび" and so on.
  • We recommend separating items with "、" (half-width ",", "・", "/", "|" and spaces also work). The full-width "," can't be used.
  • If you delete the allergen column itself, existing allergens aren't changed.

How to fill in the allergen check scope

  • Empty: not checked (the product doesn't appear in made-without search or collections)
  • 9品目: use of the 9 specified ingredients has been checked ("9" alone also works)
  • 29品目: use of all 29 items has been checked ("29" alone also works)
  • In older CSVs without this column, the existing value is kept.

How to fill in nutrition facts

  • In the single "栄養成分" (nutrition facts) column, write something like 熱量=120kcal; たんぱく質=2.1g; 脂質=7.5g; 炭水化物=12g; 食塩相当量=0.1g; 食物繊維=2g (energy, protein, fat, carbohydrates, salt equivalent, dietary fiber).
  • Separate items with a half-width ";".
  • Don't use thousands separators in numbers (✕ 1,000kcal → ◯ 1000kcal). Negative values can't be used either.
  • In rows with this column, all nutrition items are replaced with what you write.

Common examples

What you want to do What to write
Set the allergens to wheat, egg and milk アレルゲン: 小麦、卵、乳
Mark all 29 items as checked アレルゲン確認範囲: 29品目
Use a best-before date and say where it is printed 期限種別: 賞味期限 / 期限表記: 枠外下部に記載 (printed below the label)
Delete just one field Leave that cell empty
Leave a column untouched You can delete the whole column (fields in deleted columns aren't changed)


4️⃣ Save in CSV format

When you've finished filling in the file, save it in CSV format.

① Save it as follows in the software you use.

  • Excel: choose "File" → "Save As" and set the file type to "CSV UTF-8 (Comma delimited)".
  • Google Sheets: choose "File" → "Download" → "Comma-separated values (.csv)".

② When the saved file's extension is ".csv", step 4 is done.

  • Excel may remove leading "0"s from SKUs. If you keep the handle column, products are identified by handle, so this isn't a problem (don't change the handle).
  • Rows with a handle are not looked up by SKU, even if the handle isn't found. If you enter both a handle and an SKU, they must point to the same product.


5️⃣ Upload and register

① Open "3. Upload CSV and register" (3. CSVをアップロードして登録) on the "CSV import/export" page.
It is lower on the same page as step 1.

② Click the "Click to select a file" (クリックしてファイルを選択) box and choose the CSV file you saved.
As the box says "or drag and drop a CSV file here" (またはCSVファイルをここにドラッグ&ドロップ), you can also drag and drop the file onto the box. Choose one file at a time, up to 5,000 rows and 5 MB.

③ When "Selected: file name" (選択中:ファイル名) appears, click "Import and register" (読み込んで登録).
Wait until processing finishes.

④ When the results appear on the page, step 5 is done.

You can leave the encoding as "Auto-detect (recommended)" (自動判定(推奨)). Only if the text is garbled, choose UTF-8 or ShiftJIS under "Encoding for import" (取り込み時の文字コード) in "Encoding and other exports" at the bottom of the page. The "Download example" file is Shift_JIS.


6️⃣ Check the results

After the import, the results appear on the same page.

① Check the result heading.
If there are errors, the heading is "Import results" (取り込み結果); if not, "Import complete" (取り込みが完了しました). The page shows "Registered N / Skipped N / Errors N (N rows in total)".

Display Meaning
Registered N (登録 N 件) The number of products registered successfully
Skipped N (スキップ N 件) Rows in the CSV with products that weren't changed because all food label columns were empty
Errors N (エラー N 件) Rows that couldn't be registered. Only those rows weren't saved (the other rows were registered)
Registered – please review (登録済み・要確認) Rows that were registered but have something you should check (for example, "卵" (egg) is in the ingredients but not in the allergen column)

② Look at the rows with errors or items to review.
They are shown with a "Row N" (行N) badge, the handle and the reason. Some include a link to open the product.

③ Fix only the rows with errors and upload again.
You can import the corrected CSV in the same way as in step 5.

④ If products were registered, you can check them with the "Check in Food labels" (食品表示の編集で確認する) button. If it shows 0 errors and the contents of the products you want to check are correct, you're done.


If something goes wrong (common errors and how to fix them)

Message Cause and fix
不明なアレルゲン: 〇〇(29品目の表記のみ可)
(Unknown allergen: ○○ (only the names of the 29 items are allowed))
The allergen name isn't the official name. Change it, for example "たまご" → "卵" or "エビ" → "えび".
〇〇: 「△△」は使えません(…のいずれかで入力してください)
(○○: "△△" can't be used (enter one of …))
A column with fixed values contains a different word. Change it to a word from the table (full-width "100g" also causes an error).
アレルゲン確認範囲: 「〇〇」は使えません
(Allergen check scope: "○○" can't be used)
Enter empty, 9品目 or 29品目 (the numbers "9" or "29" alone also work).
handle「〇〇」の商品が見つかりません
(No product found with handle "○○")
The handle has changed. Use the handle from the downloaded CSV as is.
handle「〇〇」と SKU「△△」が別の商品を指しています
(Handle "○○" and SKU "△△" point to different products)
Correct one of them, or leave one empty.
SKU「〇〇」の商品が見つかりません
(No product found with SKU "○○")
A leading 0 in the SKU may have been removed. Enter the correct handle in the handle column.
SKU「〇〇」が複数の商品に一致するため特定できません
(SKU "○○" matches more than one product)
Specify the product in the handle column.
栄養成分「〇〇」: 「△△」を数値として読み取れません
(Nutrition "○○": "△△" can't be read as a number)
The number is written incorrectly. Write it like "120kcal" or "0.5g", without commas.
削除中にエラーが発生しました。時間をおいて再度お試しください。
(An error occurred while deleting. Please try again later.)
Only that row wasn't registered. Wait a moment and upload that row again.
データ行が多すぎます(N行)
(Too many data rows (N rows))
Each file can have up to 5,000 rows. Split the file and import each part.
ファイルサイズが上限(5MB)を超えています
(The file exceeds the size limit (5 MB))
Split the file and import each part.
CSVファイル(.csv)を選んでください。
(Please choose a CSV file (.csv).)
A file other than .csv was chosen. Save it again in CSV format.
CSVの解析で問題がありました
(There was a problem reading the CSV)
Nothing in the file was imported. The number of columns is off, or a row has an unclosed quotation mark. Save it again in CSV format.
列名が重複しています
(Duplicate column names)
Two columns have the same name. Delete one of them.
handle か sku のいずれかが必要です
(Either handle or sku is required)
Some rows have both handle and sku empty.
登録するデータがありません(名称・原材料などが空です)。
(No data to register (product type name, ingredients, etc. are empty).)
That row isn't registered. Enter the product type name, ingredients and so on.
栄養成分『〇〇』に数値がありません(「△△」は単位として取り込みます。商品ページには表示されません)
(Nutrition "○○" has no number ("△△" is imported as the unit and isn't shown on the product page))
Values without a number, such as "熱量=微量" (energy = trace), don't appear on the product page. Rewrite them with a number.
メタフィールド定義が未作成です
(Metafield definitions haven't been created)
Input status and filters won't reflect your data. Click "Run initial setup" (初期設定を実行) on the app's Home page.


FAQ

  • Q. If I change the product name, does the product type name change?
    A. No. "商品名(参照用)" (product name, reference) isn't imported. Write the product type name in the "名称" column.
  • Q. I want to delete a product's whole food label.
    A. Don't use the CSV. Use "Delete this product's label data" (この商品の入力データを削除) at the bottom of the product's edit page. See "Templates, input checklist and deleting label data".
  • Q. Are settings such as the display order on product pages deleted too?
    A. No. Settings that aren't in the CSV stay as they are.
  • Q. What if the same product appears in two rows?
    A. The later row overwrites the earlier one, and "please review" is shown.


Note: this app is a support tool for organizing, displaying and entering food label information. It does not guarantee or determine compliance with Japan's Food Labeling Act or other regulations. Please check the final content of your labels yourself.