web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / After Send_an_HTTP_req...
Power Automate
Unanswered

After Send_an_HTTP_request_to_SharePoint - Error Value does not fall within the expected range.

(0) ShareShare
ReportReport
Posted on by 47

The error happens when I update the security of a document that was recently created in SharePoint.
I am confused because this action works in some cases and not in others.

 

OUTPUTS Body:

{
  "status": 400,
  "message": "Value does not fall within the expected range.\r\nclientRequestId: cca22d76-37d0-443d-a94b-09911bb06fa1\r\nserviceRequestId: 828896a0-5057-3000-4613-3525ba300252",
  "source": "https: .sharepoint.com/sites/xxxx/_api/Web/GetUserById()",
  "errors": [ "-2147024809", "System.ArgumentException" ]
}

 

AndresNoguera_0-1676486522096.png

AndresNoguera_2-1676486831074.png

If I run open the link from the browser, the response is positive.

AndresNoguera_1-1676486733719.png

I would appreciate if you can give me some reason about the issue.

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,474 Most Valuable Professional on at

    Hi @AndresNoguera,

     

    First check. The outputs body shows an empty value. I don't see the number 18 in that outputs body. Your SecurityGroupID field might be empty.

     

    Secondly, the GetUserById method is used to get a user by it's id. It looks like you are using an id of a group object.

     

    There is a different method for groups.

     

    Have you tried using the sitegroups/getbyid for these objects instead?

     

     

    _api/Web/SiteGroups/GetById(18)

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 375 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 269 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 127 Most Valuable Professional

Last 30 days Overall leaderboard