Skip to main content
Question

VBS- Function throwing "Bot Error"


Forum|alt.badge.img+6

How to do error handling in manual VB script in A360 in case of error Output variable storing value as “Bot error”

4 replies

Narendra 5601
Forum|alt.badge.img+3

Hi @RajeshS106234 

You can either use error handler in VB Script (On error resume next) or u can handle the output of VB Script code by checking the output variable.


Forum|alt.badge.img
  • Cadet | Tier 2
  • 2 replies
  • July 11, 2023

Hello @Narendra 5601 -

I tried using (on error resume next) and tried to return the err.description, but it wont return the script error message but “bot error”.I needed the actual error message for further actions.

Ganesh


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 142 replies
  • July 11, 2023
Function FunctionName(argList)
  On Error Resume Next
  'Rest of the function logic here

 If Err.Number <> 0 Then
    FunctionName = Err.Description
    Err.Clear
 End If
End Function

@Ganesh.G5  Try this way.


Forum|alt.badge.img
  • Cadet | Tier 2
  • 2 replies
  • July 11, 2023

@Sumit.K7 

Hello Sumit, thanks for the help, it works well.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings