dotCMS / dotCMS/core

Content Import not working properly when .csv file has only a few rows of data

Open
#32,712 1 comment 0 reactions 1 assignee View on GitHub

@dario-daza is already working on this.

Since Oct 9, 2025.

Team : Scout Type : Defect
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

The content import functionality is not working and gives a "select valid file" error when the .csv file being imported has only a few rows of data i.e. 3 rows or less.

Steps to Reproduce
  • Create a sample content type with bare minimum 2 fields having text and wysiwyg data types.
  • Try to import content for the content type, download the sample .csv from the UI.
  • Try uplaoding the same sample .csv file , notice that error is observed upon clicking on preview button (Select valid file)
  • Try adding 1 or 2 more rows to the .csv file and note still error is observed.
  • Update the .csv file with at-least 7-8 rows of data and retry note that this time the import works fine and no errors when clicking on preview button.

https://drive.google.com/file/d/1Ns9oAxUWnQQWM\_urwcNwLNaLOHP3ArKZ/view?usp=sharing

Acceptance Criteria
  • Content import should work fine with only few rows of data as well
dotCMS Version

latest

Proposed Objective

Core Features

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://helpdesk.dotcms.com/a/tickets/31867

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.