web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Error handling issue

(0) ShareShare
ReportReport
Posted on by 8

Hey there,

I'm trying to continue flow run when there is an error. But regardless all the settings for handling errors the flow will throw an error and terminate. I tried multiple options like skipping to the next step or to the label, but flow is stopped each time.

 

Why the option to continue flow is not effective. 

 

Do you have any suggestions?

 

This is the error message that I'm getting.

empek_1-1666130291628.png

 

And this is one of the configurations for "Get details of the page" component. 

empek_0-1666130139693.png

 

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @empek 

     

    The error in the first screenshot is a compile time error and not a run-time.

    Meaning, it is an error shown by PAD saying that you have an incorrect browser instance parameter in the Get Details of web page action. 

    Give the correct browser instance variable coming from the Launch chrome/edge action and it will not occur.

     

    If its still showing problems please share the screenshot of the entire flow along with the parameters given in the "Get details of web page" action.

     

  • empek Profile Picture
    8 on at

    Hey @VJR

     

    Great help. Thanks for that. That make so much more sense that this is the compile time error. This explains a lot, so thanks again for this clarification. 

     

    This is the PAD script:

     

    Display.InputDialog Title: $'''Please enter URL''' Message: $'''URL''' InputType: Display.InputType.SingleLine IsTopMost: True UserInput=> URL ButtonPressed=> ButtonPressed
    WebAutomation.LaunchEdge.LaunchEdge Url: URL WindowState: WebAutomation.BrowserWindowState.Normal ClearCache: False ClearCookies: False WaitForPageToLoadTimeout: 60 Timeout: 60 BrowserInstance=> EdgeBrowser
    ON ERROR LaunchEdgeError
     SET correctURL TO $'''FALSE'''
     THROW ERROR
    ON ERROR InvalidUrlError
     SET correctURL TO $'''FALSE'''
    ON ERROR
     GOTO Jump
    END
    WebAutomation.GetDetailsOfWebPage BrowserInstance: EdgeBrowser DetailsType: WebAutomation.DetailsType.Title Details=> WebPageTitle
    ON ERROR
     GOTO Jump
    END
    IF IsEmpty(WebPageTitle) THEN
     SET correctURL TO $'''URL is not loading'''
    ELSE
     SET correctURL TO $'''URL loading correctly
    '''
    END
    LABEL Jump
    Display.ShowMessageDialog.ShowMessage Title: $'''Message''' Message: correctURL Icon: Display.Icon.Information Buttons: Display.Buttons.OK DefaultButton: Display.DefaultButton.Button1 IsTopMost: True ButtonPressed=> ButtonPressed2

     

     

    It is a simple exercise to build URL checker to see if the website is loading. 

     

    1. In the Step 3 of the flow, I'm getting the details of the page. Because I found that in the scenario when the DNS is not resolved correctly is not the same as "Invalid URL" parameter in PAD. 
      On a side note, do you know maybe some examples of "Invalid URL", unfortunately I can't find any it in the official documentation? 
    2. Then I'm using captured details to determine if the webpage loads or in case the URL was not resolved, because for this scenario script can't capture any webpage details. I'm doing that through "If Else" statement - Steps 4-8. 

    The scenario that I'm still failing to figure out is when the user provides URL that is not an URL format. Like 

    testing123 testing123

    With this input as above I'm getting a Runtime error.  Regardless error handling settings for "Lunch new Microsoft Edge" and "Get details of webpage" components.  

     

    empek_0-1666166379607.png

     

    Thanks again for all your help! 

     

     

  • VJR Profile Picture
    7,635 on at

    @empek 

    You can check if this suits your purpose

    Use the Recognise entities in text action and select URL in the dropdown

     

    VJR_0-1666170549617.png

     

    If %RecognizedEntities.RowsCount% > 0 then it detects it as a URL.

  • empek Profile Picture
    8 on at

    Nice tip @VJR. This is a smart workaround. I was thinking to build a logic to check the URL before launching Edge instance, so your suggestion is extremely helpful. Thanks! 

  • VJR Profile Picture
    7,635 on at

    Ok, and if the Recognise entities does not capture all URLs correctly then Regex is your best option.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard