Coder Social home page Coder Social logo

Problem Loading CSV File - "Header must contain atleast one of these two fields." Same as issue #27. Clearly not resolved about custommetadataloader HOT 4 OPEN

forcedotcom avatar forcedotcom commented on August 23, 2024
Problem Loading CSV File - "Header must contain atleast one of these two fields." Same as issue #27. Clearly not resolved

from custommetadataloader.

Comments (4)

jerome-d-russ avatar jerome-d-russ commented on August 23, 2024 2

I just ran in to this issue as well. I was saving the file (from Excel) as "CSV UTF-8 (Comma delimited)" originally. I saw the other thread and started trying all the different csv formats. Once I switched it to "CSV (Comma delimited)", the file finally uploaded.

from custommetadataloader.

CAfromCA avatar CAfromCA commented on August 23, 2024

It's the Unicode BOM, which is a non-printing character: https://en.wikipedia.org/wiki/Byte_order_mark

Editing the CSV with a tool that can strip the BOM (or show/edit non-printing characters) solves the issue.

from custommetadataloader.

jonvonexp avatar jonvonexp commented on August 23, 2024

I had the same issue. Resolved by removing the DeveloperName column from the csv.

from custommetadataloader.

tsailingforenomtest avatar tsailingforenomtest commented on August 23, 2024

Just adding my solution for anyone else having the same issue (because obviously this hasn't been fixed). I had the same issue when using SF Data Loader to download the csv for upload. The issue is that the SF Data Loader downloads the csv with the fields enclosed in double quotes. It worked for me when I removed all the double quotes (not sure how this would work for values with commas in them, maybe using single quotes instead works?) and this worked. The way I did this was to upload the file into Google Sheets and saved the file as csv. I was initially trying to fix the BOM issue this way, but discovered the double quote issue by accident.

from custommetadataloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.