How to validate a excel file in mule - mule

I am new to mule.I need to input a excel file to mule from a watch folder.i need to check wheather,that excel file is valid or not.
What is the best way to validate an excel file in mule

The EE edition has Datamapper which has out-of-the-box Excel support: http://www.mulesoft.org/documentation/display/33X/DataMapper+Excel+to+JSON+Example
I suppose you could attempt to parse the CSV using Datamapper and transform to check validiity.
But you can of course create a custom filter(http://www.mulesoft.org/documentation-3.2/display/32X/Using+Filters#UsingFilters-CreatingCustomFilters) or component with something like Apache POI: http://poi.apache.org/

Related

creating file from sql data to csv in mule 4

I need to create file from SQL database and load data into CSV file. After CSV file generated successfully, need to transfer it to another sftp location.
I'm assuming that you are already familiar with Mule 4 applications and flows. In a flow you can query the database using the Database connector, use the Transform component to write a DataWeave transformation to a CSV (output application/csv), then use the SFTP connector to write the file to the SFTP server.
You should get familiar with how each component from the documentation to be able to write the database query, the transformation and the SFTP transfer.

SAP data extraction through BAPI file in Automation Anywhere

I am working in automation anywhere enterprise client where i have to extract SAP data with the help of BAPI files and dump it to the .csv file, when there is no parameter or filters for selected BAPI then its works fine, but the problem is if we have to pass any parameter or filters its not working and it always generate blank csv file,
How to extract SAP data through BAPI file when we have to pass the parameter values?
i am using Automation Anywhere community edition.

NoraUI - feature regression while changing data provider

Whenever I change my data provider (from Gherkin to Excel) my features go back to an older version.
Is that an expected behavior ?
How can I overcome this ?
When you use Excel data provider, each run (of robot) copy all data from your Excel file in your feature file.
If you want put all data directly in you feature file, you need choose Gherkin data provider and put all your data directly in you feature file.

Create XLS file using TSQL

I need to generate XLS file using TSQL only. I am generating XML based Excel.
I am trying to use FOR XML for this but as the output XLS file is fairly complex its taking much efforts and time.
Is there any other way to do it?
Or if its only way what's that can i do to do it effectively ?
It is not about exporting the data. I will respond to the user in XML format and that XML format will be opened by Excel(I will include headers that Excel know and will open the result in Excel.) User or I will not have direct access to SQL server so no way to export the results.The query will be exposed as Web-service. User will request the data and application will respond with XML that will be opened in Excel.

SSIS 2005 - Import excel file using script task

Need to upload excel file using Script task in SSIS 2005. Can someone please help, provide the code.
Regards
I always use OLEDB for this and I answered this recently with a code sample here...
Best fastest way to read an excel sheet
I've always found it the best way, mainly because using a data flow task with an Excel Source doesn't allow you to either vary the Excel or to validate it's contents.