Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data table
#1
Solved: 10 Years, 9 Months ago
Dear All,

i have a excel sheet "datasheet.xls" which contains 50,000 entries in it
i want to export the data into datable...
how can i do this?




Thanks,
sia
Reply
#2
Solved: 10 Years, 9 Months ago
use Datatable.import filepath for importing into datatable
Reply
#3
Solved: 10 Years, 9 Months ago
I have used the same

This is my code

Code:
Datatable.Import "D:\datasheet.xls","<Sheet1>","<Global>"

I get this result when i run this code........

Wrong number of arguments or invalid property assignment: 'Datatable.Import'

I have tried this also

Code:
Datatable.Import "D:\datasheet.xls",1,1

I have used this also

Code:
Datatable.Import "D:\datasheet.xls",1,1
Reply
#4
Solved: 10 Years, 9 Months ago
Hi,
Use Datatable.ImportSheet "D:\datasheet.xls",1,1

Regards,
Sankalp
Reply
#5
Solved: 10 Years, 9 Months ago
Code:
Datatable.Importsheet "D:\datasheet.xls","<Sheet1>","<Global>"
Reply
#6
Solved: 10 Years, 9 Months ago
Hi,

Use DataTable.ImportSheet "D:\datasheet.xlsx",1,"name"

name : is the namesheet in the test's run time Data Table

Regards,
Sibi C A
Reply
#7
Solved: 10 Years, 9 Months ago
Hi,
Here use Datatable.Importsheet "D:\Sheet.xls","Sheet1","Global"
Dont include anything else.

I think It may work.

Regards,Sibi C A
Reply
#8
Solved: 10 Years, 9 Months ago
Hi sia sharma,

Just confirm that whether the datatable is present in the D drive of your system and the name of the excel sheet that you have entered in QTP is matching with the Excel sheet name.Check the spelling also because, inside double quote the data is case sensitive.

Regards,
Sibi C A
Reply
#9
Solved: 10 Years, 9 Months ago
The name of the excel sheet is matching and it is present in D drive.
what does it mean "the datatable is present in the D drive"?
Reply
#10
Solved: 10 Years, 9 Months ago
I just wanted to confirm that the datasheet is there in your D drive.
Again you are getting errors?
Please share the screenshots of the error and the datasheet(Excel sheet in D drive).

Regards,
Sibi C A
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  data table use uft_usr 1 2,107 06-29-2016, 05:23 PM
Last Post: Ankesh
  Writing to Run time data table Neetha 5 11,664 08-27-2015, 10:18 AM
Last Post: supputuri
  Retrieving data from web table nsuresh316 1 2,962 03-03-2014, 08:29 AM
Last Post: basanth27
  How to get data from data table in Ascending order dipashri 1 3,449 01-28-2014, 09:54 PM
Last Post: jacosta
  Data Table Query Suma Parimal 4 4,474 01-21-2014, 12:50 PM
Last Post: Suma Parimal

Forum Jump:


Users browsing this thread: 1 Guest(s)