データローダの新バージョン (バージョン 28 以降) は、UTF-8 BOM (バイトオーダーマーク) 形式を使用してエンコードされたファイルをサポートしていないため、
「CSV Error: Invalid CSV file format.Please select a different file.Error getting header row from the CSV file (CSV エラー: CSV ファイル形式が無効です。別のファイルを選択してください。CSV ファイルからヘッダー行を取得中にエラーが発生しました)」というエラーが生成されます。
BOM は隠し文字で、Excel で「」と表示されます。
注意: テキストエディタまたは Excel の設定によっては、BOM 文字を表示できません。
ファイルに BOM 文字が含まれているかどうかを判断するには、W3C Internationalization Checker を使用します。
関連情報:
データローダを使用したデータの挿入、更新、または削除
データローダ
スプレッドシートの CSV 形式への変換
1.ファイルを Excel で開き、必要に応じて変更します。
2.ファイルを「Unicode テキスト」形式で保存します。
3.ファイルを閉じて、もう一度開きます。
4.次の属性を設定してファイルをもう一度保存します。
5.ファイルを保存した後で、再度開かないでください。
6.新たに作成した .csv ファイルを使用して、データローダのアクションを通常どおり実行します。
1.BOM 付きと BOM なしの両方をサポートするテキストエディタで CSV ファイルを開きます。
2.BOM なしで保存し直します (例: Notepad++ で、[エンコード] | [UTF-8 でエンコード] を選択して、ファイルを保存)。
CSV ファイルを BOM なしで保存すると、データローダ v28 以降に読み込むことができます。
注意: 外部の DB やアプリケーションを使用している場合は、サードパーティのドキュメントで、CSV ファイルを BOM なしで保存する方法を確認してください。
詳細は、「W3C standards (W3C 標準)」を参照してください。W3C では、BOM を自動的に削除する perl スクリプトの作成に関する提案も行っています。
BOM を自動的に削除するカスタムソリューションは、Salesforce カスタマーサポートでサポートされません。
Unicode 形式を使用した csv ファイルの変換がうまくいかず、
「Invalid CSV file format.Please select a different file.Error reading row #: the number of data columns exceeds the number of columns in the header. (CSV ファイル形式が無効です。別のファイルを選択してください。行# の読み取りエラー: データの列数がヘッダーの列数を超えています。)」というエラーがユーザに表示されることがあります。
注意: このエラーは通常、区切り文字にセミコロンを使用する PC の地域設定により、ヨーロッパ諸国で発生します。
000383918

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.