Showing results for 
Search instead for 
Did you mean: 

got an error message during run a script with excel data in TestExcute

New Contributor

got an error message during run a script with excel data in TestExcute


got an error message during run a script with excel data in TestExcute


JavaScript runtime error.

The Microsoft Access database engine cannot open or write to the file ''. It is already opened exclusively by another user, or you need permission to view and write its data

Error location:
Unit: "DecemberPromotions\December\Script\PM_02"
Line: 3 Column: 27.

Community Hero

Do you have the file open? Where is it located? Are you running test complete with admin rights? We need more information.


Click the Accept as Solution button if my answer has helped
Community Hero

Actually... based upon the screenshot of the error message, note that the file name is an empty string. (literally '').  So, it doesn't appear to be a problem with the driver itself but actually that somehow the filename is not being passed properly to the function that is trying to consume it.

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
Community Manager

Thank you cunderw and tristaanogre for offering help. 


Hi @warinthira , please provide more info (see cunderw’s reply) and that should make it easier to help you out! Thanks. 

Sonya Mihaljova
Community and Education Specialist

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

Get properties of a web page element


Compare images using the Region Checkpoint

See replies!

Compare HTML table with Excel file and correct data in Excel file


How to execute remote test and obtain results via Test Runner REST API

Top Kudoed Authors