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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Answered

Unattended Run

(1) ShareShare
ReportReport
Posted on by 4
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

I have the same question (0)
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,893 Super User 2025 Season 2 on at
    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
  • CU13081429-1 Profile Picture
    14 on at
    Hi, I had the instance visible set to off already.



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

  • Verified answer
    Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at
    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
    14 on at
    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard