The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Send xls file to Rapidanalytics service"
Dear all,
Is it possible to process a plain .xls file from a Rapidanalytics service (external input and READ Excel operator)? There is a good video explaining how .csv files work, but how about .xls? It is supported? Some trick to take into account?
I am getting a "file cannot be loaded error".
With rapidminer and local .xls files, the service works fine.
Thank you,
Julio
Is it possible to process a plain .xls file from a Rapidanalytics service (external input and READ Excel operator)? There is a good video explaining how .csv files work, but how about .xls? It is supported? Some trick to take into account?
I am getting a "file cannot be loaded error".
With rapidminer and local .xls files, the service works fine.
Thank you,
Julio
0
Answers
Are you meaning using the Read Excel within a process setup as a service? Or do you mean loading the file directly within the RA web interface?
The Read Excel method works (to the best of my knowledge).
J
Read Excel directly works fine. However, we could not make it work posting a .xls file into a service.
FYI, as an additional test, I read the posted file and saved it. Excel then warned that the file was not correct. Excel was though able to retrieve most of the info.
We are on Rapidminer 5.2.8, RapidAnalytics 1.2 and running on Linux. The excel was generated under windows. We tried to work with different encodings, but no difference.
Any help will be appreciated.
Thank you,
Julio
You tried several encodings, but did you try all of them?
I used the loop parameters operator & handle exception to go through every encoding & try to encode, read an xls file then store it in the repository.
The Handle Exception would skip any errors on ones it couldn't open & then (when it found an encoding that it could read) it would store it.
Apparently, the winning encoding from the sample xls I used was ISO-8859-1 so try this on your process first & if not I've included my loop in the sample process below, you'd just need to reenable it.
Hope it helps,
J
Sorry (again) about the misunderstanding. Apparently I am just not using enough words!
Getting from Rapidminer an xls from a remote web page works fine (Rapidminer picking it up). No encoding issues. That is the example that you published (actually we explored this as a potential workaround but we need basic authentication/site-login from RapidAnalytics, which we were not able to figure out (but I just saw that someone answered on that other thread).
What we cannot make work is the following:
We define a Rapidminer process. We publish the process in RapidAnalytics as a service. We then POST a .xls file to the RapidAnalytics service. That does not work.
Still, we will play around with the encoding you mentioned from the sending side and see if that helps!!
Will be back!
Julio
Can you post a sample process as an example?
Thanks,
J.
For the purpose of simplicity:
We created a one operator process that just reads an excel sheet with format.
We published this as a service (how can you tell Analytics what file it should connect to what input port if you have multiple files?) We then created a php script to send a test.xls file We are getting the following error:
de.rapidanalytics.ejb.service.ServiceDataSourceException: Error executing process /home/anonymous/CRMDocuments/PostXLS for service PostXLSWS: Could not read file 'null': Unable to recognize OLE stream.
I assume that the file we post should be in standard format, and not a blob...?
Thank you!
Julio