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 Platform Community / Forums / Power Automate / Excel File couldn't op...
Power Automate
Unanswered

Excel File couldn't open after row insert from data table with Loop

(0) ShareShare
ReportReport
Posted on by 2
All,
I build a PAD flow to extract data from Web and insert set of data (1 row 16 columns)  into the last row (around 180 +1 ) of an existing Excel file. I use FOR EACH loop to update the columns. I managed to insert the data into the file for the first time and after second run, flow completes without any error but the Excel file couldnt open.  When clicking on the excel file, instance opens but not with the data, all menu, tabs and cells are greyed out. I issued the close instance of excel in the flow and no luck. .
 
Here are the steps 
Launch Excel
Set active excel worksheet
Get first free row on column from excel sheet (To get the row to be inserted)
Loop the data table
   Write to Excel Worksheet  with write mode on specified cell 
End
Save Excel
Close Excel
 
Any help would be greatly appreciated
Thx
P
I have the same question (0)
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
    Hu @P20TEC,
     
    what is the error your getting.Can you share the screenshot of the flow and error.
     
    Regards,
    Vishnu Reddy
  • P20TEC Profile Picture
    2 on at
    Hi Vishnu,
     
    Thanks for picking this up!.
     
    i don't get any error. it just don' open the excel file and excel stays like this. 
     
  • VishnuReddy1997 Profile Picture
    2,656 Super User 2025 Season 2 on at
    Hi ,
     
    Can you also share screenshot of the flow.
     
    Regards,
    vishnu Reddy
  • CU01040934-0 Profile Picture
    2 on at
    Hello Vishnu,
     
    Apologies i couldn't respond to your query earlier.  I created a new file instead of the old /original one and now the error seems gone and have no issues in writing and saving and re-opening the file. I suspect the original file is corrupted and causing the issue. 
    Thx
    P

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard