Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 978
    • Issues 978
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Development
  • Core
  • Issues
  • #2221

Closed
Open
Opened Nov 30, 2020 by seamuslee@seamusleeDeveloper

Cannot import preferred language field using label

Overview

Trying to import contacts including the preferred language column which contains Option Labels e.g. English (Australia) doesn't work, causes a DB error as it tries to insert in a too long a string.

Reproduction steps

  1. Create a CSV to import contacts including the preferred language field with at least one entry containing the language option value.
  2. Perform import process.
  3. Got an error "Fatal error: DB unknown error". Due to field content being too long

Current behaviour

Import fails

Expected behaviour

Import succeeds

Environment information

  • CiviCRM: Master
  • PHP: 7.3
  • CMS: Drupal 7

@JoeMurray

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#2221