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 / Error in Closing Windo...
Power Automate
Unanswered

Error in Closing Window -UI Automation

(0) ShareShare
ReportReport
Posted on by 231

Hi,

I hv created a small flow with UI automation ( 5 steps only). However, i am receiving error at Last Stage i.e. at the time of closing window. The window exists, but the flow says "Window Not Found" .

 

Window Closing ErrorWindow Closing Error

 

Please note that i have selected the Window (to be closed) from Drop-Down Menu only and not any manual entry as can be seen in the screenshot below:-

 

Close Window- Image DetailsClose Window- Image Details

 

And i have copied the error thrown as follows (which of Course i don't understand):-

 

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Window wasn't found ---> Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException: Exception of type 'Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Exceptions.WindowNotFoundException' was thrown.
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Window.WindowsActions.FindWindowByRetractionMode(Variant windowSelector, Variant childWindowSelector, Variant windowTitle, Variant windowClass, Guid windowId, UIWindowRetractionModeEnum uiWindowRetractionMode)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Window.WindowsActions.CloseWindow(Variant windowSelector, Variant childWindowSelector, Variant windowTitle, Variant windowClass, Guid windowId, Int32 uiWindowRetractionMode)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Common.Proxy.LocalAutomationRuntime.CloseWindow(String windowSelector, String childWindowSelector, String windowTitle, String windowClass, Guid windowId, FindWindowBy windowMode)
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.CloseWindowBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.UIAutomation.Actions.CloseWindowBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

Kindly let me know , why the system is throwing the error.

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @SA_VOH 

     

    1. Could you check whether the window was already opened there?

     

    2. Did u had typed the window title in the window title field or you had selected it from dropdown ?

     

    Let me know

     

    Thanks & Regards,

    Nived N

  • VJR Profile Picture
    7,635 on at

    The Window title also allows wild cards so make use of it if you do not have the same window title all the time.

    Example: Task* - Excel

    ...if your task number changes frequently.

    Take care of the spaces to be same as the on in the original window.

     

    VJR_0-1655178038962.png

     

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 953

#2
Valantis Profile Picture

Valantis 810

#3
Haque Profile Picture

Haque 622

Last 30 days Overall leaderboard