web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Power Automate Desktop
Suggested answer

Unattended Run

(0) ShareShare
ReportReport
Posted on by
Hi, I hope you are well

I have created a Desktop flow where I am running Claims in a legacy system and it runs perfectly fine on Attended license.

I am now trying to run it using an Unattended license and it fails when it has to run excel stages i.e Launch Excel.

Please refer to the attached picture for more context on the error.

I would really appreciate your help.

R
Nhlanhla

Categories:
I have the same question (0)
  • CU13081429-1 Profile Picture
    4 on at
    Unattended Run
    Thank you so much! I realized my mistake through our engagements, so I was unaware that I have to tick the parameters and also add values.
    I thought that adding the values in the flow alone is enough.

  • Henrik_M Profile Picture
    2,015 Super User 2024 Season 1 on at
    Unattended Run
    What  writes is NOT true, and it is NOT necessary or recommended.
     
    What are you trying to launch? It looks like the filepath is empty.
     
     
  • CU13081429-1 Profile Picture
    4 on at
    Unattended Run
    Hi, I had the instance visible set to off already.



    I also tried option B, the script ran, but Excel stage is still failing.

  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,615 Super User 2025 Season 2 on at
    Unattended Run
    Hi,
     
    Make instance visible: FALSE (Critical for unattended)
     

    Option B: PowerShell Integration

    Add PowerShell script action before Excel operations:

     
    powershell
    
    Get-Process excel -ErrorAction SilentlyContinue | Stop-Process -Force
    
    # Set Excel to run in compatibility mode
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible = $false
    $excel.DisplayAlerts = $false
    $excel.ScreenUpdating = $false
    $excel.Quit()
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($excel)
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2