Dataloader v60 以降でCSV をインポートすると、ナレッジ オブジェクトのリッチ テキスト フィールドに改行が追加されます。
Dataloader v59では、LF が空白スペースに変換されます。この動作変更により、以下の理由によりリッチテキストフィールドに余分な改行が追加されます。
1) 新しい Lightning 記事エディタでは、リッチ テキストフィールドに改行を追加するときに、<p> タグの間にスペースが追加されます。
UI:
Data:
----
<p>test1</p> <p>test2</p> <p>test3</p>
----
2) このデータをDataloader (バージョンは関係ありません)でエクスポートすると、スペース(20)がLF(0A)に変換されます。
"<p>test1</p>
<p>test2</p>
<p>test3</p>"
3) また、このデータを Dataloader v60 以降でインポートすると、LF が <BR> タグに変換され、余分な改行が発生します。
UI:
Data:
----
<p>test1</p><br><p>test2</p><br><p>test3</p>
----
Dataloader には、改行を BR タグに変換する設定プロパティ sfdc.load.preserveWhitespaceInRichText が存在します。
「sfdc.load.preserveWhitespaceInRichText」は読み取り専用プロパティで、デフォルトでtrueに設定されています。そのため、config.propertiesファイルでこのプロパティをfalseに設定すると(config.propertiesファイルの変更時にデータローダが実行中でないことを確認してください)、意図した動作が得られます。
RTF フィールドに 2 種類のテキストをアップロードします。
004633920

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.