Hi,
I want to use Excel as Database. But the excel input files can be in .xls or .xlsx format
- Please help me in creating connection string that can work for both .xls and .xlsx file?
- Also, what would be the Provider name?
Hi,
I want to use Excel as Database. But the excel input files can be in .xls or .xlsx format
To use Excel as a database in UiPath, you can create a connection string that is compatible with both .xls and .xlsx file formats. Additionally, you will need to specify the correct provider name. The connection string and provider name can be configured as follows:
1.Connection String for Excel Files:
You can use the âMicrosoft.ACE.OLEDB.12.0â provider, which works for both .xls and .xlsx file formats. The key to making it work with both file formats is to specify the appropriate âExtended Propertiesâ in the connection string.
Hereâs a sample connection string for Excel:
Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Your\Path\To\Your\File.xlsx;Extended Properties=âExcel 12.0 Xml;HDR=Yes;â;
Note : - In this connection string, replace "C:\Your\Path\To\Your\File.xlsx"
with the path to your Excel file.
2.Provider Name:
Microsoft.ACE.OLEDB.12.0
To make it work with both .xls
and .xlsx
files, you can use the same connection string with the appropriate âExtended Propertiesâ as described above. UiPath will handle the connection to the Excel file and allow you to perform various database operations on it, such as reading, writing, or updating data.
Hi
Here you go with the reference from UiPath knowledge base to get his resolved
Video demo
Hope this helps
Cheers @garimavarshney9