Skip to content

[Bug] CSV columns not recognized in Recipes, same dataset works fine as JSON (Unsloth Studio) #4470

Closed

Description

@megecoban

1. Did you update?
Fresh/latest installation of Unsloth Studio.

2. Environment
OS: Windows 11
CPU: AMD Ryzen 7 7735HS
GPU: NVIDIA GeForce RTX 4050 6GB
RAM: 32 GB
Unsloth Studio version: Latest

3. Interface
Unsloth Studio

4. Description
I took the first 1000 rows of the unsloth/OpenMathReasoning-mini dataset and saved it in two formats: .csv and .json. I then built a Recipe that:

  • Connects a provider and API key

  • Selects a model

  • Summarizes one of the input columns

  • Translates inputs into a target language

  • Saves the result with 3 new added columns

When loading the JSON file, the Recipe runs successfully.
When loading the CSV file with the exact same content, all column references become invalid and the Recipe cannot be run at all.

5. Error Messages
INVALID_REFERENCE · column think_summary: The prompt template for 'think_summary' references a column that does not exist: 'think'. INVALID_REFERENCE · column problem_tr: The prompt template for 'problem_tr' references a column that does not exist: 'problem'. INVALID_REFERENCE · column output_tr: The prompt template for 'output_tr' references a column that does not exist: 'justAnswer'. INVALID_COLUMN · column Unnamed: 0: Drop columns processor is configured to drop column 'Unnamed: 0', but the column is not defined. 🛑 Your configuration contains validation errors. Please address the indicated issues and try again.

Attached: Both the .csv and .json datasets and recipe.json files are attached for reproduction.

mini_cot_mini_1000.csv
mini_cot_mini_1000.json
recipe.json

Activity

  1. self-assigned this
    on Mar 19, 2026
  2. wasimysaid commented on Mar 19, 2026

    @wasimysaid
    Collaborator

    Thank you for the report! Attaching the CSV, JSON and recipe files was really helpful for reproducing this. Fixed in #4468.

  3. wu-xiaochen commented on Mar 20, 2026

    @wu-xiaochen

    Hi @megecoban - this might be a header/column naming issue in your CSV. Try ensuring the first row contains proper column headers that match your JSON keys. Also, you can try using pandas to validate your CSV: python -c "import pandas as pd; df = pd.read_csv('your_file.csv'); print(df.columns.tolist()). If the issue persists, sharing a sample of your CSV structure would help debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions