The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
Difference between revisions of "Error and Return Codes"
Line 15: | Line 15: | ||
== User interaction == | == User interaction == | ||
− | + | {| class="wikitable" | |
− | + | |- | |
− | + | ! Code | |
− | + | ! Reason | |
− | + | |- | |
− | + | | -101 | |
− | + | |Aborted: User pressed Stop button in the iMacros Browser. Typically, you can check on this value to see if the user wants to exit the application. | |
− | + | |- | |
+ | | -102 | ||
+ | |Browser Closed: User pressed Exit button in the iMacros Browser, i.e. the iMacros Browser was closed by a user. | ||
+ | |} | ||
== Macro Playback == | == Macro Playback == | ||
− | + | {| class="wikitable" | |
− | + | |- | |
− | + | ! Code | |
− | + | ! Reason | |
− | + | |- | |
− | + | | -1000 | |
− | + | |Unspecified: Macro playback returned an error without explicitly specifying error code. | |
− | + | |- | |
− | + | | -1010 | |
− | + | |NotInPlaybackMode: Error occurred while macro playback is not active (recording or idle mode). | |
− | + | |- | |
− | + | | -1100 | |
− | + | |LoadFailed: Failed to load the macro (syntax or I/O error) (Found wrong macro command while loading file). | |
− | + | |- | |
− | + | | -1110 | |
− | + | |InvalidMacroName: Invalid macro name specified for playback (Command Line Error: No Macro found). | |
− | + | |- | |
− | + | | -1200 | |
− | + | |BadParameter: Invalid macro parameter was specified. | |
− | + | |- | |
− | + | | -1210 | |
− | + | |CannotCompileRegex: Cannot compile regular expression (as in SEARCH). | |
− | + | |- | |
− | + | | -1220 | |
− | + | |WrongDecryptionPassword: Incorrect decryption password supplied. Please enter the correct password in the OPTIONS dialog or re-run the macro. | |
− | + | |- | |
− | + | | -1230 | |
− | + | |FileNotFound: Filename specified in the macro command (e.g. IMAGESEARCH) doesn't exist. | |
− | + | |- | |
− | + | | -1240 | |
− | + | |InvalidRecordIndex: The data source record with requested index does not exist. | |
− | + | |- | |
− | + | | -1300 | |
− | + | |HtmlElementNotFound: Cannot find HTML element. | |
− | + | |- | |
− | + | | -1310 | |
− | + | |NonExpectedTagFound: HTML element was found when EVENT:FAIL_IF_FOUND was specified. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= iMacros V6 Error Codes = | = iMacros V6 Error Codes = |
Revision as of 15:03, 30 June 2010
iMacros V7 Error Codes
iMacros displays an error message if it encounters an error and stops the current macro run (unless SET !ERRORIGNORE YES is used).
The general rule is:
- Success return code greater 0 (Currently there is only one success code: 1)
- Failure return code less then 0
Notes:
- The code is send via the Scripting Interface or command line interface. You can use this return code to find out whether a macro succeeded or not.
- With iimGetLastError() the text of an error message can be retrieved via the Scripting Interface.
- These error codes should not be confused with the Scripting Interface Return Codes which are codes between -1 and -100.
User interaction
Code | Reason |
---|---|
-101 | Aborted: User pressed Stop button in the iMacros Browser. Typically, you can check on this value to see if the user wants to exit the application. |
-102 | Browser Closed: User pressed Exit button in the iMacros Browser, i.e. the iMacros Browser was closed by a user. |
Macro Playback
Code | Reason | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-1000 | Unspecified: Macro playback returned an error without explicitly specifying error code. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1010 | NotInPlaybackMode: Error occurred while macro playback is not active (recording or idle mode). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1100 | LoadFailed: Failed to load the macro (syntax or I/O error) (Found wrong macro command while loading file). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1110 | InvalidMacroName: Invalid macro name specified for playback (Command Line Error: No Macro found). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1200 | BadParameter: Invalid macro parameter was specified. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1210 | CannotCompileRegex: Cannot compile regular expression (as in SEARCH). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1220 | WrongDecryptionPassword: Incorrect decryption password supplied. Please enter the correct password in the OPTIONS dialog or re-run the macro. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1230 | FileNotFound: Filename specified in the macro command (e.g. IMAGESEARCH) doesn't exist. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1240 | InvalidRecordIndex: The data source record with requested index does not exist. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1300 | HtmlElementNotFound: Cannot find HTML element. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1310 | NonExpectedTagFound: HTML element was found when EVENT:FAIL_IF_FOUND was specified.
iMacros V6 Error CodesInstallationErrors that can occur during setup or if an installation is corrupted.
RecordingErrors that can occur during macro recording.
ReplayErrors that can occur during macro replay.
Internet ExplorerErrors specific for the IE Add-on.
Command Line InterfaceErrors when calling iMacros via the command line or Scripting Interface. This error code should not be confused with the Scripting Interface Return Codes, which are codes between -1 and -100.
FirefoxErrors specific for the Firefox Add-on.
Scripting Interface Return CodesAfter each command the Scripting Interface returns a code. You can use this return code to find out whether a command succeeded or not. The general rule is:
Notes:
Error codes below -200 are error codes generated during the macro replay. These are the same errors (or error codes) that you get during a manual macro replay (if you start the macro by clicking the "Play" button). For more information on these errors please see the List of iMacros Browser Error Codes. |