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 Automate
Unanswered

Need help with Excel

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a problem. I had build a desktop flow for my organisation. When i start the flow, sometimes it works, sometimes it doesn't and there pop up a fail message.

36299f6b-22f7-49ba-9960-2f739eedd1c2.jpg

In this flow i wanted to fill a Excel file with information. The app has sometimes a problem to read the aktive Worksheet. Can someone please help me.

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

    Can you share a screenshot of your flow? What does it do exactly? And also please translate the name of the action that fails to English.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hello Agnius,

     

    thank you for your answer. The name of the action is called "Retrieve Active Excel Worksheet". The Subflow opens a Excel file and fills it with new information. Enclosed the entire Subflow:

     

    1.PNG2.PNG

     

    Best Regards, sgk.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Are you sure your Excel file has a sheet with a name like that? 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, because i call the active sheet. For example "table1". The programm safe that in the variable "sheetname". Than the program read the excel and safe the information in the variable "ExcelData". In the next step, the program adds the list to the variable "ExcelData". Then the program generates a random number and creates a new worksheet with the name of the number. The ExcelData variable is then written to this new worksheet. The old sheet (Table1) is deleted. When i open the code and click run it works fine. When i run the program from "outside" (see picture), it only works sometimes.

    3.PNG

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Where exactly in your flow do you set the %SheetName% variable? I cannot see it.

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 266 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 160 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 134 Super User 2026 Season 2

Last 30 days Overall leaderboard