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 Apps / Flow stops mid way and...
Power Apps
Answered

Flow stops mid way and doesn't add a row to excel(Outlook to OneDrive to Excel)

(0) ShareShare
ReportReport
Posted on by 17

Hi People,

 

I am using the theme template offered by PowerApps. I want to extend its potential where I can get few additional information.

 

The form is designed to do the below for now:

Once an email is received in a group folder with attachments, it saves the file in a specific designated folder in OneDrive. 

 

What I want to achieve it, every time an email is, create the file and add a row in Excel online with details such as Email Date, Subject, Content, From (email). 

 

I have tried using "Add a row" but it doesn't seem to be doing anything. In fact, the flow stops at the Condition.

Capture.JPGCapture1.JPG

 

Appreciate any assistance I can get in this regard.

 

Thank you

Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Yes, that makes sense, your action below the condition looks like it has a 'run after' setting of success - but this is only reached if the 'Create File' action fails, as that is the run-after setting of the condition block you have there.

     

    You need to change the run-after for 'when a file is created' to be 'success or skipped', as in the case where 'create file' succeeds, the next action (condition) is skipped as the run-after requirements for it are not met so it gets skipped.

    image.png

    image.png

     

  • Geeky_Rec_Petro Profile Picture
    17 on at

    Thanks for the reply @iAm_ManCat  however, it still doesnt seem to work. I did as mentioned above, attaching screenshots for your reference,

    .

     

    File is created.JPG

     

    Loop.JPG

     

    The flow just keeps running on loop.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Ah, now that is different to what you described - you said it STOPS at the condition, but what you actually meant is that its delaying at the condition - what delay did you impose before the create file re-attempt?

    image.png

     

  • Geeky_Rec_Petro Profile Picture
    17 on at

    Delay is 30 seconds. This is a template that was already available on Microsoft Flows and I am just making adjustments to suit my needs. 

     

    Geeky_Rec_Petro_0-1675862722900.png

    There are a few flow-checks that are getting failed while others are still running without stopping. 

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    can you look at one of your failed flow runs and see why it failed and provide the context here - it may be that the others will fail given enough time as they are stuck for something when they should only be waiting 30seconds, so to see the other fails will be helpful

  • Geeky_Rec_Petro Profile Picture
    17 on at

    It is going through until Create File and then failing. Attaching screenshot below

    Below is the error

    {
      "status": 404,
      "message": "The remote name could not be resolved.\r\n     inner exception: An error occurred while sending the request.\r\n         inner exception: The remote name could not be resolved: 'petroservlimited-my.sharepoint.com'",
      "source": "api.connectorp.svc.ms"
    }

     

    1.JPG12.JPG

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hi,

     

    Ok, just recreated your flow for myself - You're using a Trigger (when an item is created), not an action. A trigger is what starts a flow - you should not be using it here in the middle of a flow, as its waiting for a trigger action that will never come - this is why your flow is 'running forever' until it fails.

     

    You should just reference your 'create file' action for the ID you need for 'get file metadata':

     

    image.png

     

    then do the actions twice:

    once inside the retry (for if it happens during the retry),

    then once outside, for if the retry is skipped.

    image.png

  • Geeky_Rec_Petro Profile Picture
    17 on at

    Thank you for the assistance @iAm_ManCat . The above looked a bit complicated for a new user like me, however, I was able to create a new flow and just added a parallel branch to make it work. Below is how the new flow looks like.

     

    Geeky_Rec_Petro_0-1675946631948.png

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard