on 12-03-2013 7:45 AM
Hi ,
I want to load excel file from the FTP. I have created one folder FTP called test and kept the excel file .
But when I am trying load excel file into table or view the data from excel file it is throwing error like
FTP could not transfer file </TEST/EMP.XLSX> from host <www.0catch.com>: <>. Ensure that the FTP relative path for the SAP server working directory is set correctly such that the data file is accessible to the FTP program. Also, ensure that the target path, where the transferred file is written to, is correct.
I am using DS 4.1 SP2.
Please help me how to resolve this issue.
Thanks & Regards,
Ramana.
Hi Venkata,
There is 3 main steps while transferring xls files from FTP server to your database;
1- Getting file from FTP server to your application server
- You have to have an writable temporary directory on your application server to put your file on that.
- You need to specify your worksheet name.
2- You have to add BOExceladaptor on your Job server .
-That BOExceladaptor will open and read file(xls) on your temporary directory
Basicly you can do it :
You can only configure one Excel adapter per Job Server. Use the following options:
• On the Status tab, click the job server adapter at right to configure.
• On the Adapter Configuration tab of Adapter Instances page, click Add.
• On the Adapter Configuration tab, enter the Adapter instance name. Type BOExcelAdapter
(required and case sensitive).
for more you can read it on ;
DS Designer Guide - 6.8.1 To create a Microsoft Excel workbook file format on UNIX )
3- Insertin data to your tables
It works only for XLS not for XLSX.
Best Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramana,
Please Follow these steps for adding BOExcelAdapter ;
Language is Turkish So i make markers for all screen shots
1-SAP ds management console - Administrator and click your "Adapter";
2- Click "Adapter Configuration"
3- Click to "Add"
4-Click to the "MSExcelAdaptor" from list;
5-Now give name "BOExcelAdapter" . Write the same word "BOExcelAdapter" , Then choose SSL protocol "false" then save that configuration.
6.Then go Adapter Screen again and select your new "BOExcelAdaptor" and click run. You need to see green checked sign .
Thanks,
Hi Ramana,
I see that you installed you Data services on a windows machine thats why there is no MSExcelAdapter I think. I am working on Linux machine. Maybe you dont need an excel adaptor for windows machine.
So we can focus the first part. You need a temporary path on your server. (not FTP server).
then it will have to be writable.
Is it ok ?
Thanks,
Hi Ramana,
Bacisly system works like that ;
Data services works on an application server and Ftp is an external source for that.
Data services Job server only gets (copy) xls file to temp_folder on your application server.
Data services Opens xls file (on temp folder) to read rows.
inserts to db or where did you want.
Regards,
Hi Adil ,
Thanks for your prompt support and helping me to understand ftp file reading .
I dont know what is going to wrong , still I am facing the same issue.
I will explain the step by step and let me know where I have to correct myself.
Step 1: I have one free ftp site and I created temp folder and kept the emp.xls and emp.xlsx files .
2. I changed the folder permissions 777 in ftp.
3. I have created the temp folder in my laptop D drive .
4. I executed the job then I am getting the below error.
5. I have tried to copy same emp file in the temp folder of my D drive and executing the job . After executing the job emp file is not available .
Thanks & Regards,
Ramana.
Hi Venkata,
After placing the file on FTP right click the file and give the access rights permission.
Regards,
Rishabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please refer,
FTP Data Transport logs and errors
Error when Job Server loads Excel data into DS (FTP)
Regards,
Rishabh
Hi,
the Username looks strange. Are you sure this one is correct?
Can you pass the URL into a Browser please and check if you are able to download the file?!
Regards
-Seb.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.