<?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>topic Errors when deploying csv to sqlite in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-when-deploying-csv-to-sqlite/m-p/12345687#M1992402</link>
    <description>&lt;P&gt;I'm trying to load data from a .csv, but keep getting an error:&lt;/P&gt;
  &lt;P&gt;Definition of the entity&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;entity QuestionLists : managed {
    key questionListID   : ty.QuestionListID;
        hierarchyProfile : ty.hierarchyProfileID;
        status           : ty.Status;
        title            : ty.Title;
        descr            : ty.Descr;
        note             : ty.Note;
        valuation        : ty.ValuationStr;
        questions        : Association to many Questions; 
}

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;types:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;type QuestionID : Integer;
type QuestionListID : Integer;

type Status : String(4);
//
type Title : localized String(111);
type Descr : localized String(1111);
type Note : localized String(1111);

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;CSV File&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;questionListID ;  hierarchyProfile ; status ; title ; descr ; note 
1 ; 1 ; 1; QuestionList 1 ; Description of QL 1 ; n1 
2 ; 1 ; 1; QuestionList 2 ; Description of QL 2 ; n2 
3 ; 1 ; 1; QuestionList 4 ; Description of QL 3 ; n3 
4 ; 1 ; 1; QuestionList 4 ; Description of QL 4 ; n4 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Error:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;[ERROR] SQLITE_MISMATCH: datatype mismatch
{ INSERT: { into: 'auditq.QuestionLists',
  columns:
   [ 'questionListID',
     'hierarchyProfile',
     'status',
     'title',
     'descr',
     'note' ],
  rows:
   [ [ '1',
       '1',
       '1',
       'QuestionList 1',
       'Description of QL 1',
       'n1',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '2',
       '1',
       '1',
       'QuestionList 2',
       'Description of QL 2',
       'n2',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '3',
       '1',
       '1',
       'QuestionList 4',
       'Description of QL 3',
       'n3',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '4',
       '1',
       '1',
       'QuestionList 4',
       'Description of QL 4',
       'n4',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ] ] }}
    at init_from_ (/home/michael/Developments/SAP/.../node_modules/@sap/cds/lib/db/deploy.js:182:35)
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The columns for createAT/BY and modifiedAT/BY are apearently generated from the "managed" aspect, but should not be here on the database upload.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Mar 2021 17:14:32 GMT</pubDate>
    <dc:creator>flachlaender</dc:creator>
    <dc:date>2021-03-04T17:14:32Z</dc:date>
    <item>
      <title>Errors when deploying csv to sqlite</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/errors-when-deploying-csv-to-sqlite/m-p/12345687#M1992402</link>
      <description>&lt;P&gt;I'm trying to load data from a .csv, but keep getting an error:&lt;/P&gt;
  &lt;P&gt;Definition of the entity&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;entity QuestionLists : managed {
    key questionListID   : ty.QuestionListID;
        hierarchyProfile : ty.hierarchyProfileID;
        status           : ty.Status;
        title            : ty.Title;
        descr            : ty.Descr;
        note             : ty.Note;
        valuation        : ty.ValuationStr;
        questions        : Association to many Questions; 
}

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;types:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;type QuestionID : Integer;
type QuestionListID : Integer;

type Status : String(4);
//
type Title : localized String(111);
type Descr : localized String(1111);
type Note : localized String(1111);

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;CSV File&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;questionListID ;  hierarchyProfile ; status ; title ; descr ; note 
1 ; 1 ; 1; QuestionList 1 ; Description of QL 1 ; n1 
2 ; 1 ; 1; QuestionList 2 ; Description of QL 2 ; n2 
3 ; 1 ; 1; QuestionList 4 ; Description of QL 3 ; n3 
4 ; 1 ; 1; QuestionList 4 ; Description of QL 4 ; n4 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Error:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;[ERROR] SQLITE_MISMATCH: datatype mismatch
{ INSERT: { into: 'auditq.QuestionLists',
  columns:
   [ 'questionListID',
     'hierarchyProfile',
     'status',
     'title',
     'descr',
     'note' ],
  rows:
   [ [ '1',
       '1',
       '1',
       'QuestionList 1',
       'Description of QL 1',
       'n1',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '2',
       '1',
       '1',
       'QuestionList 2',
       'Description of QL 2',
       'n2',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '3',
       '1',
       '1',
       'QuestionList 4',
       'Description of QL 3',
       'n3',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '4',
       '1',
       '1',
       'QuestionList 4',
       'Description of QL 4',
       'n4',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ],
     [ '',
       '2021-03-04T17:01:05.200Z',
       'anonymous',
       '2021-03-04T17:01:05.200Z',
       'anonymous' ] ] }}
    at init_from_ (/home/michael/Developments/SAP/.../node_modules/@sap/cds/lib/db/deploy.js:182:35)
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The columns for createAT/BY and modifiedAT/BY are apearently generated from the "managed" aspect, but should not be here on the database upload.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 17:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/errors-when-deploying-csv-to-sqlite/m-p/12345687#M1992402</guid>
      <dc:creator>flachlaender</dc:creator>
      <dc:date>2021-03-04T17:14:32Z</dc:date>
    </item>
  </channel>
</rss>

