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 / When creating a flow i...
Power Automate
Unanswered

When creating a flow in desktop I get this message: Unhandled error "Message = Width and Height must be non-negative."

(2) ShareShare
ReportReport
Posted on by 5

I have two monitors and am running Windows 10 Pro v21H1, and everytime when I create a new flow in Power Automate Desktop, it opens a new window (behind the main one, which is a weird behavior) and then throws the unhandled error, which I have pasted below. Even though the window is "dimmed" because of the error I can still navigate the content of the window with my keyboard but *not* my mouse, which makes it impossible to use. Does anyone have any ideas how to resolve?

 

 

Message = Width and Height must be non-negative.
Error = System.ArgumentException
Full text = System.ArgumentException: Width and Height must be non-negative.
at System.Windows.Size..ctor(Double width, Double height)
at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Window.MeasureOverrideHelper(Size constraint)
at System.Windows.Window.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Interop.HwndSource.SetLayoutSize()
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)
at System.Windows.Window.SetRootVisual()
at System.Windows.Window.SetRootVisualAndUpdateSTC()
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at Microsoft.Flow.RPA.Desktop.Shared.UI.Dialogs.DialogService.ShowArbitraryContent(Window owner, Object content, String caption, Object titleTemplateKey, Object contentTemplateKey, DialogOptions options, Func`3 closingCallback)
at Microsoft.Flow.RPA.Desktop.Shared.ViewModel.TeachingGuideService.TeachingGuideStepsConfiguration.ShowDialog(Object content, String caption)
at Microsoft.Flow.RPA.Desktop.Shared.ViewModel.TeachingGuideService.TeachingGuideService.ExecuteStep(GuideStep step)
at Microsoft.Flow.RPA.Desktop.Shared.ViewModel.TeachingGuideService.TeachingGuideService.Start(String groupName)
at Microsoft.Flow.RPA.Desktop.Designer.Host.MainViewModel.<Initialize>d__120.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

I have the same question (0)
  • mcheungy88 Profile Picture
    3 on at

    Yeap, same error for me.

     

  • kostasc Profile Picture
    Microsoft Employee on at

    Hey,

     

    What PAD version are you using? 

    Could you please try the following?

    1. Close all designer instances (if any)
    2. Navigate to the Help menu in Console
    3. Select the 'Get started' option
    4. Press the skip button on the Welcome dialog

    And let me know if this resolved your issue?

  • pcamp Profile Picture
    3 on at

    yes - this worked for me .. thanks 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello,

    This work. Hopely Microsoft do something for this issue. Maybe all find this tip easily.

     

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 862

#2
Valantis Profile Picture

Valantis 738

#3
Haque Profile Picture

Haque 553

Last 30 days Overall leaderboard