Ask a Question

i am using DDT Driver to get data from Excel driver,but i am facing an issue Vb runtime error unable

pmallela2
Contributor

i am using DDT Driver to get data from Excel driver,but i am facing an issue Vb runtime error unable

i am using DDT Driver to get data from Excel driver,but i am facing an Error : Vb runtime error unable to get data from closed driver.

 

this was happening in one unit.

 

in another unit it was working fine.

 

both are different scripts and different excel files we are using.

2 REPLIES 2
Marsha_R
Community Hero

Could you show us the code that is having the issue please?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
tristaanogre
Esteemed Contributor

Is it possible for you to post the code units that you are working with or at least the related lines?

Basically, you can open a DDT driver for an Excel file but you need to make sure that you are properly referencing it all around so that you are getting the current driver. You can use the DDT.CurrentDriver property to make sure you are using the latest but the assumption is that there have been no other DDT drivers open prior to you're calling it.

If you are creating the DDT.ExcelDriver in one unit and trying to use it in another, you need to make sure you use something like that to make sure you are using the correct driver. Also, make sure that you don't close the driver before you are finished using it,

 

so... without your actual code, that's my best guesses.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: