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 Platform Community / Forums / Power Automate / Fix: "Unchecked runtim...
Power Automate
Suggested Answer

Fix: "Unchecked runtime.lastError" in Power Automate Desktop JS execution

(3) ShareShare
ReportReport
Posted on by 8

The Issue: If you are using the "Run JavaScript function on web page" action in Power Automate Desktop (PAD) and it is failing silently or throwing this specific error in your logs:

Unchecked runtime.lastError: Cannot access a chrome-extension:// URL of different extension

You aren’t alone. This error occurs because Chrome’s security model prevents Power Automate from interacting with the web page if other extensions are competing for DOM access or creating their own iframe/restricted elements.

The Solution: The fix is almost always related to Browser Extension Conflicts.

  1. Open your Chrome browser.
  2. Navigate to chrome://extensions/ in the address bar.
  3. Disable all extensions except for the "Microsoft Power Automate" extension.
  4. Refresh your automation workflow and run it again.

Why this happens: When you run a JavaScript injection via Power Automate, the browser sometimes interprets the code as trying to access the "internal" environment of another active extension (like a password manager, ad blocker, or web clipper). Chrome blocks this "cross-extension" access for security, which causes the PAD action to fail or return nothing.

image.png

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    MParikh Profile Picture
    488 Super User 2026 Season 1 on at
    Hi @CU29050651-0,
     

    The core diagnosis is correct. Chrome's security model blocks cross-extension DOM access. When Power Automate Desktop injects JavaScript into a page, another extension (password manager, ad blocker, LastPass, Grammarly) intercepts or creates iframe elements, and Chrome throws that error because PAD cannot access a chrome-extension:// URL belonging to a different extension.

    Disabling all other extensions will fix it in most cases.

    What the post misses

    The "disable everything" approach is not practical in enterprise environments. A few more targeted fixes worth knowing:

    Run Chrome in a dedicated automation profile. Create a separate Chrome profile with only the Power Automate extension installed. Use that profile exclusively for your desktop flows. This avoids touching the user's main browser setup.

    Check for iframe injection first. Before disabling extensions one by one, open DevTools on the target page and look at the DOM. If you see injected iframes from extensions like Honey, Grammarly, or any password manager, those are the likely culprits. Disable them individually rather than all at once.

    Use the "Wait for page load" action before JavaScript execution. Sometimes the error surfaces because PAD runs the JS before the page is fully stable, and a loading extension element gets caught mid-render.

    Consider switching to Selenium IDE actions or the built-in UI element actions where possible. JavaScript injection via PAD is fragile by design because it depends on the browser state at runtime.

    The broader point

    If you are building PAD flows for production use in an organization, a dedicated Chrome profile with a locked extension list is the right architecture, not a workaround. The post treats this as a one-time fix. Treat it as a setup standard.


    Thank you!
    Proud to be a Super User!
  • Suggested answer
    Valantis Profile Picture
    5,118 on at
     
    Good diagnosis and solid additional context from MParikh. One thing worth adding for anyone hitting this in a managed environment where creating a separate
     
    Chrome profile isn't an option:
    You can also launch Chrome directly from the PAD flow using the "Launch new Chrome" action with a custom user data directory argument. Set the launch arguments to:
    --user-data-dir="C:\PAD_Chrome_Profile" --disable-extensions-except="extension-id-for-power-automate"
    This spins up a clean Chrome instance with only the Power Automate extension active without touching the user's regular browser or requiring any manual profile setup. Useful for unattended flows running on a service account where no human is managing the browser.
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

    💼 LinkedIn

    ▶️ YouTube

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 957

#2
Valantis Profile Picture

Valantis 847

#3
Haque Profile Picture

Haque 609

Last 30 days Overall leaderboard