ignore the error and keep runing code
Forum rules
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
iMacros EOL - Attention!
The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely,
The Progress Team
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
ignore the error and keep runing code
Sometime the iMacros display
RuntimeError: element ........................ was not found, line 22
could let iMacros ignore the error when NOT finding element and keep running the code ?
cause sometimes this error is a necessary step in my task, but I do not want it be stop...
thanks very much <(_ _)>
RuntimeError: element ........................ was not found, line 22
could let iMacros ignore the error when NOT finding element and keep running the code ?
cause sometimes this error is a necessary step in my task, but I do not want it be stop...
thanks very much <(_ _)>
Re: ignore the error and keep runing code
oh I got it
SET !ERRORIGNORE YES
SET !ERRORIGNORE YES
-
- Posts: 12
- Joined: Fri Nov 28, 2008 6:46 pm
Re: ignore the error and keep runing code
Can you also ignore the page loading and keep running code ?
I'm having trouble with it
I'm having trouble with it
Re: ignore the error and keep runing code
I am new to this and think this is what I need to do to get through some of the errors popping on my forms as well, but where do you go to set it to "ignore the error"? Can't quite seem to navigate anywhere to find this out.
-
- Posts: 83
- Joined: Fri Mar 20, 2009 9:12 pm
Re: ignore the error and keep runing code
On the script imacros create, you right click on it and on the display menu click on "Edit", then when it pop up the script editor just go to the very first line of the code and type "SET !ERRORIGNORE YES" and ready! Save the code, close it and run it.lpitts01 wrote:I am new to this and think this is what I need to do to get through some of the errors popping on my forms as well, but where do you go to set it to "ignore the error"? Can't quite seem to navigate anywhere to find this out.
Cheers
frankhack1
Re: ignore the error and keep runing code
is there a "repeat until success" recovery option instead of just ignoring i need the step to work. if it fails (maybe my internet down) kepe trying until it works.
-
- Posts: 60
- Joined: Sat Feb 28, 2009 2:16 pm
Re: ignore the error and keep runing code
SET !Timeout 10trinitrotoluen wrote:Can you also ignore the page loading and keep running code ?
I'm having trouble with it
so your macro waits 10 Seconds before it execute the next line
-
- Posts: 60
- Joined: Sat Feb 28, 2009 2:16 pm
Re: ignore the error and keep runing code
You can set this where you want, e.g.lpitts01 wrote:I am new to this and think this is what I need to do to get through some of the errors popping on my forms as well, but where do you go to set it to "ignore the error"? Can't quite seem to navigate anywhere to find this out.
Code: Select all
SET !ERRORIGNORE YES
'... some code ...
SET !ERRORIGNORE NO
Code: Select all
SET !ERRORIGNORE YES
'... some code ...
'end of macro