Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

IMPORT FROM: Error at first row in csv

$
0
0

Issue 1:

 

I am trying to import a csv file using control file, All records are getting copied with no issues, only the very first record is throwing exception.

 

I tried opening the file in different text editor and saved it, still getting the same error.

 

Attached csv + ctl and error log., (Please remove .txt extensions, added to compromise posting validations) 

 

Error Message: 

 

Parsing error: Incorrect integer value for ExchangeRateKey field : ï

2,2,2007-02-01 00:00:00.000,356,353.6,1,2009-07-01 00:00:00.000,2009-07-01 00:00:00.000

^

 

 

Issue 2:

 

Getting error message when i add the following line to ctl file.

TIMESTAMP FORMAT 'YYYY-MM-DD HH24:MI:SS.FF3' 

 

Error Message:  SAP DBTech JDBC: [2]: general error: Unknown keyword, timestamp

 

It's working well in SQL console

IMPORT FROM CONTROL FILE '/usr/sap/HP2/HDB03/shared/HGM_NP/ctl/ExchangeRate_KF.ctl' WITH TIMESTAMP FORMAT 'YYYY-MM-DD HH24:MI:SS.FF3';

 

Thanks,

Nagaraj


Viewing all articles
Browse latest Browse all 6412

Trending Articles