What you may find (I also had the same issue) the library might not be able to read the value being returned from the formula, the only workaround I could do for the chosen Excel library I’m using due to needing the read/write/save features and supporting .xlsx the library offered, was to format the spreadsheet first in the first instance… so Id copy all contents of a sheet, paste special and then paste back to the original sheet, so kind of a “pre-test setup” to ensure the data was in a format the library would be able to read, due to that limitation.
Apart from that, it’s worth exploring the library docs to see if it supports read where a formula is being used to return a value.
Hope that at least helps, but looks very similar to the issue I had come up against in the past.
Documentation is about read xls/clsx worksheet in general.
My requirement is to read testdata from csv/xls.
for which I tried using DataDriver library with “Test Template” Keyword.
It always gives below error:
"Variable '${c1}' not found."
I also trried same using xls >
"Library DataDriver testSheet/TestData.xls sheet=Sheet1 "
Oh… okay, sorry as you commented on a post that was related to RPA.Excel to oppose a fresh post, I hadn’t noticed the Library DataDriver from your snippet and replied on the assumption you were using the same library, generally tho, you are limiting any responses from others that may have a lot more experience with DataDriver this way, as you’ll be able to specify a title for your own post that will draw in those.
Unfortunately, I don’t have any experience with DataDriver
I recently posted a working example of DataDriver library with a csv file:
You can take that example, run it to see how it works and then modify it to your needs.
I simply followed the documentation to create the example. once you have it working you should be able to import the csv into a excel file and follow the documentation to change the Library DataDriver line to import the excel file.
I guess I figured out the issue. Datadriver library is missing in my installation but since line: “Library Datadriver” was not giving any error , I got confused. That’s why my cab variables are not know to my robot testcases.
Is there an easy copy paste way to get Datadriver Library, as I can’t easily install (run pip ) on my office system?
The best thing to do is configure your system so that pip can use your proxy server
Failing that, you can download the tar.gz and whl files and tell pip to install from the local files, but you will need to get the prerequisites as well, for datadriver it looks like you’ll need:
Using a proxy server is really much easier, I’ve done it both ways, the catch with the manual downloads, is you need to also check the prerequisites for each of those prerequisites, and then the prerequisites of their prerequisites and so on till you have all the prerequisites packages you need to install the original package, where if you just configure the proxy pip does all that for you.