Action execution failed!

Discussion in 'Tally Developer' started by Alisher92, May 20, 2016.

    
  1. Alisher92

    Alisher92 New Member


    Dear all. Can you help me to find my mistake in this simple code:

    [Collection: ExceltemMasterAliasCollection]

    ODBC : "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}; DBQ = d:\STAlias1.xlsx"
    SQL : "Select * From [LLL$]"

    [Function: STAliasImport]

    Variable : TotalEntries : Number
    Variable : Count : Number
    00 : Set : TotalEntries : $$NumItems:ExceltemMasterAliasCollection
    10 : Start Progress: ##TotalEntries : "Update Stock Item Alias" : "Importing Stock Item Alias" : ##SVCurrentCompany
    20 : Walk Collection : ExceltemMasterAliasCollection
    30 : New Object : Ledger
    40 : Set Value : Name : $_1
    50 : Set Value : Parent : $_2
    60 : Set Value : State Name : $_4
    70 : Set Value : Ledger Phone : $_5
    80 : Set Value : Email : $_6
    90 : Insert Collection Object: Address
    100 : Set Value : Address : $_3+", " +$_4
    110 : Set Target : ..
    120 : Insert Collection Object: Address
    130 : Set Value : Address : $_3
    140 : Set Target : ..
    330 : Create Target
    340 : Show Progress : ##Count
    350 : Increment : Count
    360 : End Walk
    370 : End Progress
    380 : Msg Box : "Status" : "Item MasterImported Successfully"

    [#Menu: Gateway of Tally]

    Add : Item : Before : @@locQuit : "Import Ledger" : Call : STAliasImport



    Error:
    FUNCTION: 'STAliasImport' LABEL: 10 : Invalid number of steps
    FUNCTION: 'STAliasImport' LABEL: 10 : Action execution failed!
     
    Last edited: May 20, 2016


  2. mpal2311

    mpal2311 Active Member


    full code with excel file.
     


Share This Page