Vikas_M
(Vikas M)
August 30, 2023, 3:54pm
1
Greetings everyone,
I have a query regarding a specific Property “Add Headers” which is present in reading Excel/workbook activities. When this option is unchecked, Excel introduces arbitrary column headers and treats the actual headers as regular rows.
I am interested in understanding how a similar outcome can be achieved in the context of using Excel as a database.
I’vee checked by adding HDR=No to my connection string but it didn’t work for me
Hi @Vikas_M ,
Could you provide us with the attempted connection strings, so that we can avoid suggesting you with the same again.
Also, Have you checked the below Blog :
Connection strings for Excel. Connect using CData ADO.NET Provider for Excel, Microsoft.ACE.OLEDB.12.0, Microsoft.Jet.OLEDB.4.0, OleDbConnection.
1 Like
Vikas_M
(Vikas M)
August 30, 2023, 4:41pm
3
Hey @supermanPunch ,
Below is my Connection String
"Dsn=Excel Files;dbq=D:\Users\Downloads\ExcelHasDB\DDD.xlsx;defaultdir=D:\Users\Downloads\ExcelHasDB;driverid=1046;maxbuffersize=2048;pagetimeout=5;Header=False;"
To aid in understanding, I’ve added a screenshot here below
Hi
Did u check with this tutorials on this
How to connect with Excel as a database ?
Perform the details mentioned in the Step by step guide, for connecting Excel as a database
Open Excel file (Note - Excel file must remain open)
In UiPath Studio Drag and drop Connect / Execute (Non) query activity
Click Configure connection
Open Connection Wizard
Select Microsoft ODBC Data Source
Use Connection String
Click Build
Go to Machine Data Source
Click New
Click Next
Microsoft Excel Driver(.xls)
Next
Finish
Give Some Data Source Name and Desc…
Cheers @Vikas_M
Vikas_M
(Vikas M)
September 4, 2023, 8:05am
5
Hey @Palaniyappan ,
Yes i have checked the tutorials but am not able to access the xaml file nor the spreadsheet
I get the below message when i try to login
1 Like
Yeah I think it’s not public
Well anyhow this topic was split into another video tutorial
Hi,
In order to connect dynamically to Excel from UiPath I suggest you use OLEDB. Then you will be able to use mysql to retrieve data from the Excel into a data table.
Here is a YouTube video how you can do it:
[UiPath: Manipulate Excel with SQL]
@Vikas_M
1 Like
ppr
(Peter Preuss)
September 4, 2023, 8:18am
7
@Vikas_M
Thanks for your PM
in general, we would assume: Pseudo column names (A,B,C) are used instead
Its good to cross-check it within a RnD to get it validated and we encourage you to do so.
When the RnD is not working as expected then let us know all details:
Studio Version, relevant Package versions, set Project Compatibility
Excel Version
Data Source / Provider / ODBC Details
Maybe a side test by crosschecking with a SQL Client can help also
1 Like