Skip to main content

Notifications

Power Automate - Using Connectors
Answered

OneDrive for Business - Create File - Invalid Request - Status Code 400

(0) ShareShare
ReportReport
Posted on by 10

Hello,

I am creating a flow to automatically save emails to a folder in OneDrive. It worked once and I didn't get the results I wanted so the next time I tweaked it, it stopped working and even when I reset it to the way it was, it refuses to work at all.
I'm getting the following output in the OneDrive for Business - Create File connector.

{ "status": 400,

"message": "Invalid request",

"source": "api.connectorp.svc.ms" }

I have also attached a few screenshots of the flow.
Thank you in advance for your help.!

Flow DetailsFlow DetailsFlow ErrorFlow Error

  • Verified answer
    yoyo5795 Profile Picture
    yoyo5795 10 on at
    Re: OneDrive for Business - Create File - Invalid Request - Status Code 400

    I solved it with a compromise of not creating a folder for each email and only saving the .eml file. I don't know if there is another solution but for now I am going with this. Thanks for your help anyways

  • Pstork1 Profile Picture
    Pstork1 64,907 on at
    Re: OneDrive for Business - Create File - Invalid Request - Status Code 400

    When you Test the flow are you sending a new email with a different subject?  The OneDrive create file action will fail if you try to overwrite an existing file.  Also, make sure that the full root of the folder path exists.  The action can create a folder, but only if the parent folder already exists.  Since you are nesting your folder inside a From folder make sure the From folder is valid.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard

Featured topics