SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    General error when using reusable action to import sheet

    I hava a reusable action ActionA, in it i import sheet from external XLS file:
    DataTable.ImportSheet "TestCase.xls", Parameter("strSheetSource"), CInt(Parameter("numSheetDest"))

    I set the parameter strSheetSource as "ruleset1", numSheetDest as 3(strSheetSource is the name of the source sheet in the XLS file, while numSheetDest is the id of the destination sheet to import to), and the script runs smoothly.

    When i create another script and insert ActionA into it, and set the parameters, when the script runs , it fails and said:
    a general error occured while importing sheet 3 from the file Testcase.xls to sheet ruleset1.

    But I set the "ruleset1" as the souce sheet, 3 as the destination sheet id, how's this happening
    Olivia,Dou

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec, Canada
    Posts
    324
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: General error when using reusable action to import sheet

    Olivia

    Try to use the name of the sheet instead of the sheet index number.

    Regards,
    Clemens

  3. #3
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: General error when using reusable action to import sheet

    It should be absolute path of TestCase.xls.
    Or:
    Check Excel location in 'another script'. Is it there, in the same directory, where it is called from?

    Janna

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:25 AM.

Copyright BetaSoft Inc.