I'm using Exasol database and want to insert data from a .csv
file into a database table.
Here is the script
ALTER SESSION SET NLS_DATE_FORMAT= 'DD-MM-YYYY';
ALTER SESSION SET NLS_TIMESTAMP_FORMAT = 'DD-MM-YYYY HH24:MI:SS.FF3';
ALTER SESSION SET NLS_DATE_LANGUAGE='ENG';
TRUNCATE TABLE &1..&2;
DEFINE fileDir = './Input/';
IMPORT INTO &1..&2 FROM LOCAL CSV FILE '&fileDir&3'
ENCODING = 'ISO-8859-15'
--ROW SEPARATOR = 'CRLF'
COLUMN SEPARATOR = '|'
--COLUMN DELIMITER = ''
SKIP = 0
REJECT LIMIT 0;
commit;
Here is the data
Product | Base product | code | Product Name
44139 | 4413 | 4413 | Mobile
Error
Error: [42636] ETL-3050: [Column=0 Row=0] [Transformation of value='??Product failed - invalid character value for cast; Value: '??] (Session: 1595916477624115890) while executing 'IMPORT INTO TEST.PRODUCTS FROM CSV AT 'http://19.0.0.11:00000' FILE '07hgbjhed-jhkn-4178-92f3-jhasdkgasdsgdh6556' ENCODING = 'ISO-8859-15' COLUMN SEPARATOR = '|' SKIP = 0 REJECT LIMIT 0;'
May I know please what's the issue ? How can I fix this ?