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 / PAD / Update several E...
Power Automate
Unanswered

PAD / Update several Excel Files fails

(0) ShareShare
ReportReport
Posted on by 6

Dear all,

following problem i´m facing:

  • Several Excel Files with same structure (but different filenames) are connected with SAP Analysis for Excel to a database
  • Up to now, i´m updating the files manually which takes a long time for me
  • Now i want to let PAD to the work for me 🙂

 

My approach was following:

1) Set variable for the Folder Path

2) Get files in folder

3) Implemented the "for each" action to grab every file after each other

4) The run application i used, because sometimes it happened, that the addin "SAP analysis for excel" was not loaded

5) The wait function is implemented, because depending on the file size, it took longer to get the file loaded.

6) From the process step "Select tab in windows" i used the Recorder in PAD.

 

tobisw80_0-1673339287201.png

I assume, that something is running wrong because of the usage of the recorder function, because in the UI element section i see, that PAD stored the name of the first file.

 

tobisw80_1-1673340565603.png

When the flow is running and coming to the 2nd file (which have a different filename) it runs to an error. 

tobisw80_2-1673340751565.png

I´m not sure, if this is really the root cause, but it looks like, because i changed now the file name and got immediately the same error message within the 1st file.

 

How could i store the UI-element in a way, that it is independent from the file name? Or is my assumption wrong?

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    You can edit the highlighted UI element by hovering over it, then right click the ellipses (3 dots) and left-click view.  A single line popup may appear here; do the same thing (hover, right click ellipses, left-click View/Edit.)

     

     Then you should come to the UI Pane.  You will see a row called "Name".  Change it to Contains and delete everything but Excel.

     

    Now the UI element will work in all Excel windows and not just the one you captured.  It is important that with this method, you only have 1 Excel window open at a time, which it looks like you do.

     

    Good luck!

  • tobisw80 Profile Picture
    6 on at

    Hi Michael,

    thanks - now it opens the file perfectly, but now i run in a runtime error with the next UI Element "Click Tab Analysis".

    Following looks the UI Pane - could you tell me, what i need to change here?

    The spreadsheet where all the data is stored is called "Tabelle1".

    tobisw80_0-1673367609489.png

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    Try to do the same thing:

    Name contains Excel instead of Mapelle1

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 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard