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 / HTTP request inheritin...
Power Automate
Unanswered

HTTP request inheriting the incorrect runAfter condition

(0) ShareShare
ReportReport
Posted on by 2
Good afternoon
 
I need assistance with a flow I am currently trying to build.
 
The flow loops through a list of tasks to identify the new tasks that have been assigned for the day. The assignees are added to an array, and there is a loop that works as follows:
 
For each assignee, identify all new tasks allocated to them and create an HTML table with certain columns (to be displayed in an email notification), then check whether the assignee has access to the specific Sharepoint list, and if not it assigns the appropriate access rights.
 
In my latest test, I have two items with two different assignees - the first one has access and the second one does not yet have access.
 
The first loop through performed as expected (assignee already had access so actions were skipped) 
 
The second loop through (for the assignee that does not yet have access) returned the following error: "The execution of template action 'Grant_user_access' is skipped: the 'runAfter' condition for action 'Delay' is not satisfied. Expected status values 'Succeeded' and actual value 'Skipped'."
 
 
I have double-checked, and the runAfter condition for the 'Delay' action in this loop through is "Succeeded", not "Skipped" like the error message says:
 
 
This leads me to think that the HTTP request (Grant user access) is inheriting the runAfter condition for the previous loop through.
 
I tried adding a 5s delay because I thought it might be a timing issue, but this hasn't helped.
 
In case it would be useful, my HTTP request looks as follows:
 
 
Please assist :)
Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Moderator on at
    Could you try switching the designer to classic, do a test run and see if you get the same behaviour?
  • NP-28031425-0 Profile Picture
    2 on at
    Hi! 
     
    Thanks so much for getting back so soon :)
     
    I've switched to the Classic view, and it is still giving me an error, but the error message is now different.
     
     
    Error message below (source removed and List Title in the "message" edited)
    "body": {
            "status": 400,
            "message": "The expression \"lists/getByTitle(‘S... R... T...’)/items(\"1\")/roleassignments/addroleassignment(principalid=\"48\", roledefid=\"1073741926\")\" is not valid.\r\nclientRequestId: e134c513-cd65-4fbd-97dd-802b3456aa56\r\nserviceRequestId: 2ce88fa1-7045-c000-277b-a56759b3905a",
            "errors": [
                "-1",
                "Microsoft.SharePoint.Client.InvalidClientQueryException"
            ]
        }
    All the variables are coming through correctly in the error message, so I'm not sure why this isn't working.
     
    The only thing I can think of is that this request maybe doesn't work for custom roles?
     
    (Also just a note - I have confirmed that the RoleDefID is correct)
     
     
    Do you have any advice? :)
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard