Table transformations

How to choose the first non-empty product image URL from several columns

2026-06-20
Task

A supplier sends image links in image_1, image_2, and image_3. The export needs one main_image column with the first non-empty URL.

Short answer

Create main_image from image_1; when the current value is empty, replace it with {image_2}, and if it is still empty, replace it with {image_3}.

How to do it in Eofferix

  1. Open the settings of the output main_image column and select image_1 as the source.

    main_image column settings in Eofferix
    The outline shows where to open the settings for main_image.
  2. In Transformations, add two rules: if the current value is Empty, Replace with{image_2}; then another Empty rule with Replace with{image_3}.

    Rules for choosing the first non-empty image URL
    Rule order matters: Eofferix checks image_2 first, then image_3.
  3. Save the template and run the transformation on the final step.

Before / after

Before

source data
skuimage_1image_2image_3
SKU-100https://cdn.example/en-chair-1.jpghttps://cdn.example/en-chair-2.jpg
SKU-200https://cdn.example/en-desk-1.jpg

After

result
skumain_image
SKU-100https://cdn.example/en-chair-1.jpg
SKU-200https://cdn.example/en-desk-1.jpg

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up