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 / Desktop flow with erro...
Power Automate
Unanswered

Desktop flow with error: Cloud connector call failed with status code 'Unauthorized'.

(0) ShareShare
ReportReport
Posted on by 6

Hello all,

 

I am having an issue with a desktop flow that's a bit odd.

I have a cloud flow that will trigger the same desktop flow twice.

This desktop flow is handling two input files from Sharepoint, one in each run, and in the end, creates a report and uploads it to Sharepoint as well.

 

The problem is that the flow runs correctly the first time it's triggered, being able to process all data and upload the report file, but the second time it is triggered, it's failing consistently on the action to Create the file in Sharepoint.
The only difference between runs is the input file and the report content. Both runs run on the same VM with the same configuration and connection references.

Here are the error details:

Cloud connector call failed with status code 'Unauthorized'.
StatusCode : 401
Message :
Body : {"error":{"code":"AuthenticationFailed","message":"Authentication failed."}}

 

Any idea on how to solve this?

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

    Can you share a screenshot of the Create a file action in the flow?

  • DiogoMeira Profile Picture
    6 on at

    Sure, here it is:

    DiogoMeira_0-1712819964337.png

    The FileName variable has a unique value for each csv file with a timestamp, e.g.: filename_yyyyMMdd_HHmmss.csv

  • DiogoMeira Profile Picture
    6 on at

    Some additional information I noticed that may not be related to this but:
    I have currently two different flows failing with the same error in SharePoint actions and one common denominator between them is the run duration being more than 1 hour:
    Flow 1

    DiogoMeira_0-1712822155774.png

    Flow 2

    DiogoMeira_1-1712822238973.png

    Is it possible that the connection reference is somehow timing out after 1 hour?

     

  • Ralle422 Profile Picture
    18 on at

    Might be microsoft server issues - i'm having the same issue today with multiple connectors.
    Office 365 Outlook and Sharepoint connecters is suddenly timing out and retrying. This resulted in the same email being sent 7 times, before the action actually failed - even though it's set to not retry.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I can confirm that several other users have been having some issues with other connections throwing the same error. Might just be a global thing with some services being down or not working properly. I recommend you just see if it goes away tomorrow, and if it doesn't - report it to MS support.

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 248 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 204

#3
Haque Profile Picture

Haque 179

Last 30 days Overall leaderboard