Skip to main content
Community site session details

Community site session details

Session Id : Y9QfGC6HbR1KQyb5QPeLif
Power Automate - Building Flows
Answered

Flow for delete old versions - Sharepoint - Bad Request

Like (0) ShareShare
ReportReport
Posted on 3 Sep 2023 20:54:14 by 2

I maked a flow for delete a old versions from files in sharepoint.

In my first test, I have a follow response: BadRequest. Http request failed as there is an error: Request headers must contain only ASCII characters.

 

Screenshot 2023-09-03 174538.png

 

Error details: URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: me,users Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri:

 

 

_api/web/GetFolderByServerRelativeUrl('Shared Documents/Primeiros passos/Leitura plástica digital/')/Files('g21_mdn_lt_1mmt_p002a160_prof.pdf')/Versions

 

 

 

How I fix this?

 

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 04 Sep 2023 at 01:39:38
    Re: Flow for delete old versions - Sharepoint - Bad Request

    Hi @juniordiasjfd ,

     

    The actual http action used in the post you mentioned is sharepoint http action.

    So please try this

    vxiaochenmsft_0-1693791565784.png

     

    Best Regards,

    Wearsky

  • juniordiasjfd Profile Picture
    2 on 03 Sep 2023 at 21:00:31
    Re: Flow for delete old versions - Sharepoint - Bad Request

    Detail: I used this instructions for make the flow: https://powerusers.microsoft.com/t5/General-Power-Automate/Flow-Deleting-old-Versions-on-Sharepoint/m-p/350320

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete