on 07-25-2013 11:05 AM
Hi guys,
I am trying to import a CSV File into a table with the following command:
IMPORT FROM CSV FILE 'path/test.csv' INTO "Consumption" WITH RECORD DELIMITED BY '\n\r' FIELD DELIMITED BY ';';
but I receive an error:
Could not execute 'IMPORT FROM CSV FILE ...' in 20 ms 759 µs .
SAP DBTech JDBC: [2]: general error: Cannot open CSV file, path/test.csv
What am I doing wrong??
I gave myself the Admin role and also GRANT SELECT priviledges to _SYS_BIC and SYSTEM.
Any idea what I can try??
Thanks in advance!
Hi,
Please refer below document in 17th Page:
Thanks & Regards,
V Srinivasan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kristina,
Two things you need to check :
1 - the file path - make sure it is correct
2 - Make sure that the folder for the file path has chmod 777 on the folder (basically full access) - if you use filezilla you can do this by right clicking on the folder and mentioning full access.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kirsten,
Seeing your code you are using
FIELD DELIMITED BY ';';
instead of semi-colon you should use comma ',' here.
FIELD DELIMITED BY ',';
Regards,
Vivek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristina,
As per your error, the Wiki says that the problem is that CSV file doesn't exist or is not readable.
So please check that your file path is correct and file is readable.
You can check the Wiki here:
http://wiki.sdn.sap.com/wiki/display/inmemory/Common+Import+Errors
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.