Import: mapping several columns to a "URL (Multiple)" field keeps only one value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fundefoerderung
    Junior Member
    • Apr 2026
    • 10

    #1

    Import: mapping several columns to a "URL (Multiple)" field keeps only one value

    Steps to reproduce:
    1. Administration → Entity Manager → Account → Fields → Add Field → type URL (Multiple), name websites.
    2. Create a CSV file (delimiter ,, text qualifier "):
      Name,Website 1,Website 2,Website 3
      Row A,https://a.example.com,https://b.exam.../c.example.com
      Row B,https://a.example.com,https://b.example.com,
      Row C,https://a.example.com,,
    3. Go to Import, select entity type Account, upload the file, keep the default settings, click Next.
    4. In Field Mapping, map "Name" → Name, and map "Website 1", "Website 2" and "Website 3" each → Websites. The UI allows this.
    5. Click Run Import.
    6. Open the imported accounts.

    Expected behavior:
    All mapped URLs are stored in the field: Row A → a, b, c; Row B → a, b; Row C → a. Phone numbers and email addresses already work this way, through separate import mappings (Email 2–4, one Phone per type). Alternatively, the UI should not allow mapping the same field to more than one column, or it should show a warning.

    Actual behavior:
    Only the value of the last non-empty mapped column is stored: Row A → c, Row B → b, Row C → a. The other URLs are discarded silently. The import reports success, with no import errors.

    Notes:
    • Request sent by the UI: "attributeList":["name","cWebsites","cWebsites","cWebsites"].
    • In application/Espo/Tools/Import/Import.php, each column calls $entity->set($attribute, ...), so each mapped column overwrites the previous value. Only email and phone have dedicated multi-column handling (processFieldEmailMulti, processFieldPhoneMulti).
    • Importing several URLs in a single column works ("https://a.example.com,https://b.example.com").
    • No errors in data/logs or in the browser console.

    EspoCRM version: 10.1.5
    PHP version: 8.3.6
    Database: MariaDB 10.11.14
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 10137

    #2
    Hi,

    I never expected multiple columns against a single field to merge. It was not supposed to work. Not treated as a bug. The Email and Phone behaviors do not set a precedent.

    I'll consider implementing it in future. But no guarantees.

    You may consider merging values in a spreasheets software before import.

    Comment

    Working...