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 / Write Excel doesn't wo...
Power Automate
Answered

Write Excel doesn't work through cloud flows

(0) ShareShare
ReportReport
Posted on by 32

Hi,

 

I have a flow that loops through an Excel sheet and reads and writes data from rows based on a variable LoopInt.

When the flow is executed in PAD, it executes without any issue. When the same flow is executed from a cloud flow that executes the desktop flow, the rows are not incremented, so all values are written to the same row.

Is this a known issue with the cloud flows? I don't see any explanation why it works fine in PAD, but not when called in a cloud flow.

This is the same for attended and unattended.

I have the same question (0)
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    Could you please try to check/debug it, by keeping a counter variable. Therefore, while running it unattended you can view the count in that variable.

  • vincentnoot Profile Picture
    32 on at

    Hi, I have a counter for the row variable. How can I view the value of this variable while running unattended?

     

    Edit: I found the steps in the unattended flow where the variable is increased. The input values are:

     

    {
        "value": {
            "localizedName""Variable name",
            "value""2",
            "variableName""DatabaseLoopInt"
        },
        "incrementValue": {
            "localizedName""Increase by",
            "value""1",
            "variableName"""
        }
    }
     
    The output is empty
    { }
     
    The step is executed correctly, but doesn't seem to increase the variable value, as the input value is 2 throughout the entire flow. Any ideas why this could be?
  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at
  • vincentnoot Profile Picture
    32 on at

    Thank you. Please see my edit to my previous reply. In case you didn't get a notification 🙂

  • vincentnoot Profile Picture
    32 on at

    I just did another test with my PAD flow in the desktop app. The flow works fine and the DatabaseLoopInt increases correctly every loop. Only through (both atttended and unattended) cloud flows it stops working.

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    Could you please replicate below in your script and check if your variable is getting incremented:

    Ankesh_49_0-1657538044069.png

     

  • vincentnoot Profile Picture
    32 on at

    Thanks for this clear example. I've replicated it below:

     

    vincentnoot_1-1657540430508.png

     

     

    Am I going crazy or is this some bug?

     

  • AS-06081019-0 Profile Picture
    1,738 Super User 2024 Season 1 on at

    @vincentnoot  Seems like there is something wrong when your PAD script is getting called from cloud in your original script. May be some variable is not getting set or there could be something to do with active cell in excel where the data is getting written. Try using get active cell and see if it solves your purpose.

    Thank you for you patience!!

    -Ankesh

  • Verified answer
    vincentnoot Profile Picture
    32 on at

    So I just got off the phone with Microsoft support. Turns out my version was from January. If anyone else is experiencing this issue: Check for updates button did not work properly 

    Manually downloading and installing the latest version solved the issue.


    Still, it's interesting that this issue exists at all. I believe support is going to research where the problem stems from.

     

    Thank you so much for your input @Ankesh_49 !

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard