power automate desktop fail to open Outlook

Yu, Vidal 0 Reputation points
2023-03-14T09:55:11.8333333+00:00
值不能為 null。
參數名稱: type: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: 無法啟動 Outlook ---> System.ArgumentNullException: 值不能為 null。
參數名稱: type
   於 System.Activator.CreateInstance(Type type, Boolean nonPublic)
   於 System.Activator.CreateInstance(Type type)
   於 Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.OutlookActions.LaunchOutlook(Variant& outlookInstance)
   --- 內部例外狀況堆疊追蹤的結尾 ---
   於 Microsoft.Flow.RPA.Desktop.Modules.Outlook.Actions.LaunchOutlook.Execute(ActionContext context)
   於 Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,518 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 43,916 Reputation points
    2023-03-15T15:52:13.5566667+00:00

    Hello there,

    Before running the outlook launch flow, we need to check whether the outlook programme is already running or not with an if statement.

    You can close the already open instance by using "Terminate Process" and passing Outlook exe. And then launch a new instance from PAD.

    As a best practice we do close all applications used in the usecase and then launch them once in the beginning when the process starts.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments