Check the product or variant metafield definition in Shopify. A URL field stores a URL. A file reference stores a reference to a file in Shopify. A list of file references needs a list definition and may use a different input representation.
- For a URL field, confirm the PDF or image URL works in a browser without a login. Export one existing product or variant with the intended metafield selected. Use the exact exported heading for that definition.
- For a file reference, upload the asset into Shopify Files. Export a sample record that already contains a file reference of the intended type. Use the emitted value format and the exact definition from that shop.
- Keep the product or variant ID in the test file. Make a change on one representative record and run Validate Data before importing.
- Check the stored value in Shopify and its appearance on the storefront. If uploading an image only to a metafield, leave unrelated product media columns unselected.
When changing definition types, export a backup and test a separate definition before replacing an established storefront reference.