<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Initial data support for text fields containing newlines in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586631#M4720089</link>
    <description>&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;thanks for the feedback.&lt;/P&gt;&lt;P&gt;I know, all of you are quite busy with TechEd.&lt;/P&gt;&lt;P&gt;Regards Holger&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 15:57:41 GMT</pubDate>
    <dc:creator>hschaefer123</dc:creator>
    <dc:date>2022-10-18T15:57:41Z</dc:date>
    <item>
      <title>Initial data support for text fields containing newlines</title>
      <link>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaq-p/12586628</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am referring to URL:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://cap.cloud.sap/docs/guides/databases?q=data+csv#providing-initial-data" target="test_blank"&gt;https://cap.cloud.sap/docs/guides/databases?q=data+csv#providing-initial-data&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;Please get back to me on the following feedback:&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;For performance reasons, I am trying to import formerly exported/converted sqlite3 mock data&lt;BR /&gt;(generated from xml inside init.js)&lt;BR /&gt;to `data/TABLE.csv`. using plain tools&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;cds deploy srv --to sqlite:bme.db --no-savesqlite3 -header -csv bme.db \"select * from ns_Product;\" &amp;gt; ns-Product.csv
  &lt;P&gt;The current showstopper is the missing support for text properties containing newlines, because the `cds-deploy.js` can not handle it and throws an error.&lt;/P&gt;
  &lt;P&gt;But the official text/csv spec seems to support it&lt;BR /&gt;&lt;A href="https://www.rfc-editor.org/rfc/rfc4180" target="test_blank"&gt;https://www.rfc-editor.org/rfc/rfc4180&lt;/A&gt;&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;escaped = DQUOTE *(TEXTDATA / COMMA / CR / LF / 2DQUOTE) DQUOTE&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;And this is also the way, sqlite3 exports the CSV from an existing table.&lt;/P&gt;
  &lt;P&gt;Is there maybe another way off adding text with newlines to initial mock data using CSV files (special escape sequence, etc)?&lt;/P&gt;
  &lt;P&gt;If there is no other way to handle it, any change to get support for this feature request?&lt;BR /&gt;I think, it would be a benefit, if CAP would could support this for initial data out-of-the-box.&lt;/P&gt;
  &lt;P&gt;Right know, i played some hours with workarounds, but none really fits my needs ;-(&lt;/P&gt;
  &lt;P&gt;Best Regards&lt;BR /&gt;Holger&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 10:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaq-p/12586628</guid>
      <dc:creator>hschaefer123</dc:creator>
      <dc:date>2022-10-18T10:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Initial data support for text fields containing newlines</title>
      <link>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586629#M4720087</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;yes, totally makes sense, but looks like a gap.  I don't think there is an escape sequence like \n available atm.&lt;/P&gt;&lt;P&gt;SAP HANA's hdbtabledata seems to support \n escaping according to their &lt;A href="https://help.sap.com/docs/SAP_HANA_PLATFORM/3823b0f33420468ba5f1cf7f59bd6bd9/35c4dd829d2046f29fc741505302f74d.html" target="_blank"&gt;documentation&lt;/A&gt; as well, so looks good.  Will keep you posted.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Christian&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586629#M4720087</guid>
      <dc:creator>chgeo</dc:creator>
      <dc:date>2022-10-18T15:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Initial data support for text fields containing newlines</title>
      <link>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586630#M4720088</link>
      <description>&lt;P&gt;Also see the discussion on &lt;A href="https://answers.sap.com/questions/13738545/" target="test_blank"&gt;https://answers.sap.com/questions/13738545/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586630#M4720088</guid>
      <dc:creator>chgeo</dc:creator>
      <dc:date>2022-10-18T15:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Initial data support for text fields containing newlines</title>
      <link>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586631#M4720089</link>
      <description>&lt;P&gt;Hi Christian,&lt;/P&gt;&lt;P&gt;thanks for the feedback.&lt;/P&gt;&lt;P&gt;I know, all of you are quite busy with TechEd.&lt;/P&gt;&lt;P&gt;Regards Holger&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2022 15:57:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/initial-data-support-for-text-fields-containing-newlines/qaa-p/12586631#M4720089</guid>
      <dc:creator>hschaefer123</dc:creator>
      <dc:date>2022-10-18T15:57:41Z</dc:date>
    </item>
  </channel>
</rss>

