Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

Issue importing .CSV file from HANA DB folder path

$
0
0

Hi All,

 

I have created .csv file 'testdata1' and table "XXX"."testdata1".

Uploaded the 'testdata1.csv' file and "testdata1.ctl" file to the HANA DB work folder.

I am trying to run the import command as below and same i maintained in 'testdata1.ctl' file.

 

IMPORT FROM '/usr/sap/HD1/HDB11/work/Test data1.csv' INTO "XXX"."testdata1" WITH record delimited by '\n' FIELD DELIMITED BY ','

optionally enclosed by '"' error log 'x.err' COLUMN LIST ("salesorg", "division", "qty")

 

But i am getting the error as below

 

Could not execute 'IMPORT FROM '/usr/sap/HD1/HDB11/work/testdata1.csv' INTO "XXX"."testdata1" WITH record ...' in 14 ms 139 µs .

SAP DBTech JDBC: [2]: general error: Unknown keyword, kkkk .

 

I have the below data in my .csv file.

 

KKKK,K1,4000

LLLL,L1,5000

MMMM,M1,6000

 

Bothe .csv file and .Ctl files are having 777 permission.

 

Can any one suggests the solution if you faced the same issue.

 

Thanks & Regards,

Srini


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>