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 / Unhandled error - Arit...
Power Automate
Unanswered

Unhandled error - Arithmetic operation resulted in an overflow (send key alt+down in excel)

(0) ShareShare
ReportReport
Posted on by 9

Hello I need help.

I just send key in Excel with "send key" or "push in my laptop keyboard and click in power automate desktop windows" it show this windows and error details

"

Message = Arithmetic operation resulted in an overflow.
Error = System.OverflowException
Full text = System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)

Message = Arithmetic operation resulted in an overflow.
Error = System.OverflowException
Full text = System.OverflowException: Arithmetic operation resulted in an overflow.
at System.Windows.Shell.WindowChromeWorker._HandleNCHitTest(WM uMsg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Shell.WindowChromeWorker._WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)"

Picture

alt-downorup.png

 



I try to delete "Folder Power Automate Desktop" in appdata > local > microosft. it does't work. :'(

Please help.
Thanks.

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Which specific action does this happen on and what keys are you sending there?

  • Srini007 Profile Picture
    3,483 Super User 2026 Season 1 on at

    Hi @it_rpa_kns 

     

    Passing the Keys in the excel GUI environment is some what difficult, because the selectors are not that much stable, Instead of GUI automation of excel software, its better to look if you can crack the solution using the excel actions available in PAD, That will perform without opening the excel and those are backend operations

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • imkalp Profile Picture
    10 on at

    Hi,

     

    Can you pls elaborate more that which keys you are sending? and on what button you are trying to get control?

     

    Thanks

  • it_rpa_kns Profile Picture
    9 on at

    I send this key

    {Alt}({Down}{F}{E})%Date_Excel_Format%{Return} to Windows Excel

    Raw Code
    MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: ExcelTPSContactFile TextToSend: $'''{Alt}({Down}{F}{E})%Date_Excel_Format%{Return}''' DelayBetweenKeystrokes: 100 SendTextAsHardwareKeys: False

  • it_rpa_kns Profile Picture
    9 on at

    Thank you for the answer.

    I'll try using SQL Excute from an Excel file instead.

  • it_rpa_kns Profile Picture
    9 on at

    I send this key

    {Alt}({Down}{F}{E})%Date_Excel_Format%{Return} to Windows Excel

    Raw Code
    MouseAndKeyboard.SendKeys.FocusAndSendKeysByInstanceOrHandle WindowInstance: ExcelTPSContactFile TextToSend: $'''{Alt}({Down}{F}{E})%Date_Excel_Format%{Return}''' DelayBetweenKeystrokes: 100 SendTextAsHardwareKeys: False

    ------------------

    I try to use filter column in excel with shortcut key (active column and use keyboard "Alt + Down" and " F , F" for select filter.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard