[Collection:ExcelLedgersCollection]
ODBC: "Driver={Microsoft Excel Driver (*.xls,*.xlsx,*.xlsm,*.xlsb)};DBQ=C:\Desktop\List.xls"
SQL: "Select * from [Items$]"
[Function: ImportFromExcel]
Variable :TotalEntries :Number
Variable :Count :Number
00: Set :TotalEntries :$$NumItems:ExcelLedgersCollection
10: Start Progress: ##TotalEntries :"Items Creation" : "Importing Items in" : ##SVCurrentCompany
20: Walk Collection: ExcelLedgersCollection
30: New Object :Ledger
40: Set Value :Barcode :$_1
50: Set Value :Name :$_2
60: Set Value :Quantity :$_3
70: Create Target
80: Show Progres : ##Count
90: Increment : Count
100: End Walk
110: End Progress
120: Msg Box : "Status" : "Ledgers from Excel Imported Successfully"
[#Menu: Gateway of Tally]
Add: Item: Before:@@locQuit: "Import From Excel" :Call :ImportFromExcel
I ran the above code and I am getting the following two errors:
1 FUNCTION 'ImportFromExcel' LABEL:10 Invalid number of steps 2 FUNCTION 'ImportFromExcel' LABEL:10 Action execution failed!
The function basically tries to read the data from the excel file called List.xls. I have googled these two errors and I found some suggestions:
- The OS + Tally + Microsoft Office should all be either 32 bit or 64 bit.
- The excel file name extension should be xls instead of xlsx.
I have a 64 bit system and I have checked to make sure that both Office and Tally are 64 bit. Also, my file extension is .xls. Any other ideas as to why this might not be working?