Joe Strazzere - All Things Quality

August 13, 2008 - WinTask - Error Codes

Posted in WinTask
Bookmark and Share

(from http://www.wintask.com/onlinehelp/wintaskhelp.htm)

 

 

Error codes for File management functions

The table below lists the possible error codes for the WinTask File management functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

-2

Index too big when running WinTask Excel functions (the array is smaller than the number of cells)

-1

ColeDispatch Exception : Error returned by Excel when an invalid operation is attempted by WinTask Excel functions

1

File empty

2

File not found

3

Path not found

4

Too many files open

5

Path empty

6

Directory already exists

7

File already exists

8

Not enough memory

9

File or path not found (TaskExec could not find if it's the file or the path which is not found)

10

Incorrect disk

11

Error in current directory

12

Write protected

13

Unable to copy files

14

Unable to delete files

15

Unable to name files

16

Unable to move directory

17

Unable to create directory

18

Unable to delete directory

19

Unable to change directory

20

Unable to write (or save)

21

Directory full

22

Bad sector

23

Error IO

24

Violation error

25

Disk full

26

Unable to create file

27

Unable to open file

28

Unable to readi file

29

Invalid file

30

Unable to close file

31

Invalid length

32

Unable to change attributes

90

Internal XML COM error

99

Invalid parameters

110

Invalid XML path

111

Invalid XML attribute or XML attribute not found

112

Index too big (return code only for the XML functions)

 

Error codes for Flow control functions

The table below lists the possible error codes for the WinTask Flow control functions, for the errors stopping script execution (unless #IgnoreErrors=1). Only the Shell or the Run function return such error codes.

 

34

DDE failure

35

No association

36

Access denied

37

DLL not found

38

Sharing violation

39

Empty Shell name

40

Empty Run name

 

Error codes for ODBC functions

The table below lists the possible error codes for the WinTask ODBC functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

-5

Close the record set first

-4

Connection cancelled

-3

No numeric field

-2

No connection available

-1

No record set

 

Error codes for System functions

The table below lists the possible error codes for the WinTask System functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

-4

WinTaskAdmin service not started (GetCPULoad/GetMemUsage/GetProcessCPULoad functions under Vista)

-4

Access denied (KillApp, KillAppChildren, KillProcess functions)

-3

Statistical function failed

-3

Action cancelled by user (KillApp, KillAppChildren, KillProcess functions)

-2

The PID of the application is incorrect (KillProcess function)

-1

Timeout elapsed for the macro (ExecExcelMacro function)

-1

Index too big

1

Cannot send mail (SendEmail function)

2

The Excel workbook does not exist

5

Access denied (StartService, StopService, IsServiceStarted functions)

34

DDE failure (Shell/ShellWait functions)

35

No association (Shell/ShellWait functions)

36

Access denied (Shell/ShellWait functions)

37

DLL not found (Shell/ShellWait functions)

38

Sharing violation (Shell/ShellWait functions)

39

Empty Shell name (Shell/ShellWait functions)

66

Empty key name (Registry functions)

67

Error opening key (Registry functions)

68

Error setting up key (Registry functions)

69

Error reading key (Registry functions)

70

Error deleting key (Registry functions)

71

Error deleting the value of the key (Registry functions)

72

Invalid type for the key (Registry functions)

90

Internal error

99

Invalid parameter

103

Cannot reboot

104

No enough rights to reboot

107

The macro cannot be found (ExecExcelMacro function)

109

WinTaskAdmin service not started (StartService/StopService functions under Vista)

 

Error codes for Web functions

The table below lists the possible error codes for the WinTask Web functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

-2146697211

An HTTP error prevents the specified page to load

-2147220991

An HTTP error prevents the specified page to load

-404,-405

Usual HTTP error codes

-12

Download timeout

-11

Internal error

-10

Navigate failed

-8

HTML Element not found

-7

Index too big

-5

Page has not finished to load within the timeout

-4

Browser lost

-3

Bad HTML descriptor

-3

Browser not recognized (Only for StartBrowser function when its first parameter is different from "IE")

-2

Page not found

-1

Impossible to capture or invalid range (Capture Web functions)

-1

No browser in use (no UsePage or StartBrowser before)

 

Error codes for Windows management functions

The table below lists the possible error codes for the WinTask Windows management functions, for the errors stopping script execution (unless #IgnoreErrors=1).

 

41

Window not found (or window handle not found)

42

Window name empty

43

No window specified

44

Impossible to move the window

45

Impossible to resize the window

46

Focus change error

48

Impossible to find Edit box

49

Impossible to find Combobox

50

Impossible to attach to Combobox

51

Impossible to find Listbox control

52

Impossible to find Combobox control

53

Impossible to find Listview control

54

Impossible to find Treeview control

55

Impossible to find button

56

Impossible to find checkbox

57

Impossible to find radiobutton

58

Impossible to find Tab

59

Invalid scrollbar

60

Impossible to create the msgframe

61

New coordinates for window are out of the screen

62

Impossible to read window size

64

Out of screen

65

Item not found

75

Empty menu name

76

Menu not found

77

Menu attach error

78

Menu item not found

90

Internal error

95

Invalid instance number

98

Error in key list inside instruction SendKeys

99

Invalid parameter

105

Invalid UI command (the User Interface is not available when running a non-interactive task via Scheduler)

106

Invalid toolbar

108

Invalid Regular Expression




Any comments on this article?
Email Me

Permanent Link

<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Search This Site

RSS Feed

Subscribe

Categories

Life
QA
Sports
Tools
WinTask
Work in General

Links

Home
View my profile
Archives
Email Me
SQAForums.com

What I'm Reading Now