StoreSync logo StoreSync
Import & Export

How to Structure a Shopify Import File: Handles, Headers and Metafield Columns

A well-structured import file prevents most Shopify import problems before they happen. Learn how handles, header rows, resource types, metafield columns, and value formats work, and how StoreSync's sample files, column mapping, and preview step help you prepare clean data.

Updated
8 min read
StoreSync Team
StoreSync import screen mapping spreadsheet columns such as handle, Title and custom.subtitle to Shopify fields with a validation preview

Most import problems can be traced back to the file itself. A missing handle, a renamed header, or a value in the wrong format can cause rows to fail or update the wrong record, even when the rest of the file looks perfect.

The good news is that a well-structured file prevents most of these issues. Once you understand how import files are organized, preparing clean data becomes a repeatable process rather than trial and error.

This matters most when you're importing many rows at once, working with metafields, or preparing files that other people will edit.

In this guide, you'll learn the building blocks of a Shopify import file, the most common structural mistakes, how StoreSync's sample files, column mapping, and preview step help you prepare data, and the practices that keep your files clean.

Why Import Files Go Wrong

Import files are often edited by several people, copied from other systems, or built up over time. Each step introduces opportunities for small structural mistakes.

Here are a few typical scenarios:

  • A supplier file uses "Product Name" instead of the column name your import expects.

  • The handle column is missing, so the import can't tell which products to update.

  • Metafield columns are named inconsistently, such as "Subtitle" in one file and "custom.subtitle" in another.

  • Boolean values are written as "Yes" and "No" instead of "true" and "false".

  • Dates appear in several formats because they were typed by different people.

These issues lead to predictable problems.

1. Rows don't match existing records. Without a reliable identifier, an import may create new records instead of updating existing ones.

2. Data lands in the wrong field. When column names don't match, values may be ignored or mapped incorrectly.

3. Typed values are rejected. Metafields with types such as boolean, date, or JSON need values in the right format.

4. Partial imports. A few malformed rows can fail while the rest succeed, leaving your data in a mixed state.

5. Time lost to troubleshooting. Finding the cause of failed rows takes longer than preparing the file correctly in the first place.

A clear structure solves these problems at the source.

What Makes Up a Shopify Import File?

An import file is a table where each row describes a record and each column describes a field. A few elements matter most.

The header row. The first row contains column names. These names tell the import tool what each column contains. In StoreSync's format, column names are case-sensitive.

The handle. A handle is the URL-friendly identifier of a product, collection, page, or blog post, such as heritage-wool-coat. Imports use handles to match rows to existing records.

The resource type. StoreSync's sample files include a resource_type column, such as products, collections, or pages, so the file clearly states what kind of data it contains.

Standard field columns. These cover fields such as Title, Body (HTML), Vendor, Type, Tags, and Published, depending on the resource.

Metafield columns. Metafields use the namespace.key format, such as custom.subtitle, so each column points to one metafield definition.

Here's a simplified example of a product import file:

handle

resource_type

Title

Vendor

custom.subtitle

heritage-wool-coat

products

Heritage Wool Coat

Acme Apparel

Classic winter coat

canvas-tote-bag

products

Canvas Tote Bag

Acme Apparel

Everyday essential

Shopify's native product CSV uses its own template with columns such as Handle, Title, and Variant SKU. Each tool has its own expected columns, so it's important to start from the right template for the tool you're using.

How StoreSync Helps You Prepare Import Files

StoreSync's File Import is built around a guided process: upload your file, map its columns, and preview the data before importing. Several features help you get the structure right.

1. Start From Sample CSV Files

StoreSync provides downloadable sample files for supported resources, including products, collections, pages, blog posts, menus, files, metaobjects, companies, and orders. Translation samples are generated for your store.

Each sample shows the expected columns and example values, giving you a reliable starting point instead of building a file from scratch.

2. Use a Fresh Export as a Template

StoreSync's exports use the same column layout that imports expect. Exporting the resource you want to update gives you a file with the correct columns and your current data already filled in.

You can edit that file and import it again, which reduces the chance of structural mistakes.

3. Map Columns to Shopify Fields

During import, StoreSync shows the columns found in your file and lets you match each one to a Shopify field, metafield, or metaobject reference. This is helpful when a file comes from a supplier or another system and uses different column names.

Automatic field mapping is included on the Basic and Pro plans, which helps when your column names already match the expected fields.

4. Preview and Validate Before Importing

After mapping, the preview step shows how StoreSync has read your file. Rows with problems are flagged, and rows with errors are skipped so that valid rows can still be imported.

Reviewing the preview lets you catch issues such as missing handles or invalid values before your store changes.

5. Understand Empty Cells

In StoreSync imports, empty cells are skipped. Leaving a metafield cell blank doesn't overwrite or clear the existing value, so a partial sheet updates only the fields you've filled in.

This makes it safer to import files that only contain the columns or values you want to change.

6. Review Results After the Import

When an import finishes, the Job History page shows how many rows were successful, failed, or skipped. You can download the results, including only the failed rows, to see what needs fixing.

Shopify's Native CSV Template vs. StoreSync's Import Format

Both approaches use spreadsheets, but they have different expectations and tools.

Feature or workflow

Shopify's native product CSV

StoreSync File Import

File formats

CSV

CSV and XLSX up to 50 MB, plus Google Sheets on Pro

Template

Shopify's product CSV template

Sample files for supported resources

Matching existing records

By handle

By handle for products and other handle-based resources

Column names

Must follow Shopify's template

Columns can be mapped to fields during import

Metafield columns

Supported for some metafields in Shopify's format

namespace.key columns for metafields

Preview before import

Basic import summary

Row-level preview with errors flagged

Resources covered

Products, customers, and inventory, among others

Products, collections, pages, blog posts, menus, redirects, files, metaobjects, translations, companies, discounts, and orders

Feature availability and supported fields may vary. Review the current StoreSync feature list to confirm that it supports your specific workflow.

Whichever tool you use, the same principles apply: use the expected columns, include reliable identifiers, and format values correctly.

When Should You Pay Extra Attention to File Structure?

Some imports carry more risk than others.

First-time imports: When you're importing a resource for the first time, start from a sample file to learn the expected columns.

Supplier and third-party files: Files from other systems rarely match your import format exactly and usually need mapping.

Metafield updates: Typed metafields need values in the right format, such as true or false for booleans.

Large catalog updates: The more rows you import, the more a structural mistake can affect.

Files edited by several people: Shared files tend to collect inconsistent headers and value formats.

Best Practices for Shopify Import Files

These habits help you build files that import cleanly.

Keep One Header Row

Make sure the first row contains column names and that there are no extra title rows or blank rows above it.

Always Include Handles

Handles are how imports find existing records. Check that every row has the correct handle and that handles have no extra spaces.

Use namespace.key for Metafields

Name metafield columns with their full namespace and key, such as custom.subtitle, and use the same names in every file.

Format Values Consistently

Use lowercase true or false for booleans, YYYY-MM-DD for dates, and valid JSON for JSON metafields.

Save in the Right Format

If you're working with CSV files, save them with UTF-8 encoding to preserve special characters.

Test With a Few Rows

Import a small sample first and review the results before importing the full file.

Build Better Import Files and Import With Confidence

A clean import starts with a well-structured file. Getting handles, headers, metafield columns, and value formats right prevents most import problems before they happen.

Sample files, fresh exports, column mapping, and a preview step make that structure easier to achieve, especially when files come from different sources.

StoreSync brings these tools together in its File Import workflow. You can read the import documentation for format details, and if your data starts as a messy supplier spreadsheet, our guide to turning supplier spreadsheets into clean Shopify products walks through the cleanup process.

Ready to simplify your Shopify store management workflow?

Explore StoreSync and discover a more convenient way to manage your Shopify store data.

Explore StoreSync

Frequently Asked Questions

What columns does a Shopify import file need?

It depends on the tool and resource. Shopify's native product CSV uses its own template. StoreSync's sample files include a handle column, a resource_type column, and columns for standard fields and metafields. Start from the sample or template for the tool you're using.

Why is the handle column important?

The handle identifies which record each row belongs to. Imports use it to find existing products, collections, or pages to update. If handles are missing or incorrect, rows may fail or create new records instead of updating existing ones.

How should I name metafield columns?

In StoreSync, metafield columns use the namespace.key format, such as custom.subtitle. Using the full name ensures that each column points to the correct metafield definition. Keep the names consistent across all your files.

What happens to empty cells during an import?

In StoreSync imports, empty cells are skipped. A blank cell doesn't overwrite or clear the existing value, so you can import files that contain only the values you want to change.

Can I import a file with different column names?

Yes. StoreSync's column mapping step lets you match the columns in your file to Shopify fields, metafields, or metaobject references. This is useful for supplier files or exports from other systems.

How do I find out why some rows failed?

Open the import in StoreSync's Job History and download the failed results. The file shows which rows didn't import so you can correct them and import them again.

Try StoreSync for Free

Start with the free plan — 50 products, 20 collections, and 20 pages — no credit card required. Upgrade when you're ready.

Install on Shopify Contact Us