Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datatable import error
#1
Not Solved
Hi All,

I have a problem in importing an excel file into datatable.
code:
Code:
datatable.addsheet("Login")
datatable.ImportSheet "D:\FolderName\SubFolderName\InputFile.xls","Login","Login"

is throwing Run Error "The DataTable.ImportSheet operation failed. Invalid file"
Same code till yesterday worked perfectly fine.

When the same script is run in the morning it is throwing the above error. No changes have been made to the file format, only data is changed. it is .xls file only.

I thought the problem is from QTP side,some datatable dll might have got corrupted, and installed QTP11 on another system, the problem persists in other system also.

Please let me know the solution, other wise ill have to modify nearly 20 scripts.
Reply


Messages In This Thread
Datatable import error - by Prashanth - 04-05-2013, 05:10 PM
RE: Datatable import error - by ravi.gajul - 04-06-2013, 11:54 AM
RE: Datatable import error - by Prashanth - 04-08-2013, 10:45 AM
RE: Datatable import error - by ravi.gajul - 04-08-2013, 10:55 AM
RE: Datatable import error - by Prashanth - 04-08-2013, 11:07 AM
RE: Datatable import error - by ravi.gajul - 04-08-2013, 01:40 PM
RE: Datatable import error - by Prashanth - 04-08-2013, 05:14 PM
RE: Datatable import error - by praveen.g3 - 11-19-2014, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 851 09-11-2019, 02:52 PM
Last Post: siddharth1609
  Datatable.importsheet error niks19 2 3,234 08-21-2015, 12:00 AM
Last Post: ADITI1992
  How to import .xlsx file type to QTP qtped 3 6,325 03-27-2014, 01:33 PM
Last Post: Ankur
  Import multiple values from excel into QTP Shaik Ahmed 2 3,255 03-09-2014, 09:17 PM
Last Post: Shaik Ahmed
  Import and read multiple tabs on a datasheet trance07 1 3,103 10-09-2013, 07:29 PM
Last Post: Parke

Forum Jump:


Users browsing this thread: 1 Guest(s)