Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 6sZmv0jBzp7YBTUqSzg/5C
Power Automate - AI Builder
Unanswered

"Forbidden" error

Like (1) ShareShare
ReportReport
Posted on 11 Oct 2024 07:24:03 by 9
Hello,
 
I’m working on a flow using Power Automate that includes multiple approval steps. I’ve structured the flow with loops to send reminders if an approver doesn’t respond within 12 hours. I’m using the "Create an Approval" and "wait for an Approval" action and have set up a timeout to resend the approval request every 12 hours until the approver responds. The process works fine, but I’m facing two challenges:

I want to use the "Update a row" action in Dataverse to cancel any timed-out requests so that they don’t remain visible for the user. However, I keep getting a "Forbidden" error when trying to do this. I’ve double-checked my permissions and access to Dataverse, but the issue persists. Has anyone encountered this before or know how to resolve it?

Since the old approval requests aren’t canceled when the new one is sent, users sometimes respond to the outdated request. When they do, they receive a notification, but nothing actually happens because the system is only tracking the latest approval. This can be confusing for users, and I’d like to ensure that when a new request is sent, the previous one is either canceled or made invalid so that users don’t mistakenly respond to it.

Any guidance or solutions to these issues would be greatly appreciated. Thanks in advance!
  • RayF Profile Picture
    9 on 14 Oct 2024 at 09:15:39
    "Forbidden" error
    And this is the configuration of the update a row action
     
  • RayF Profile Picture
    9 on 14 Oct 2024 at 09:11:02
    "Forbidden" error
    this is the full error information
    {
        "statusCode": 403,
        "headers": {
            "Cache-Control": "no-cache",
            "Set-Cookie": "ARRAffinity=abaa6163c21b32092ab3a28a96da689cfc6be1b1faba50b064482d697323235a15134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DCE786A6BD1C8D2009616191; path=/; secure; HttpOnly,ReqClientId=c38f9abe-bb2f-40e2-9fa6-2025d1780f73; expires=Mon, 08-Oct-2074 10:17:48 GMT; path=/; secure; HttpOnly,ARRAffinity=abaa6163c21b32092ab3a28a96da689cfc6be1b1faba50b064482d697323235a15134d20c556b0b34b9b6ae43ec3f5dcdad61788de889ffc592af7aca85fc1c508DCE786A6BD1C8D2009616191; path=/; secure; HttpOnly",
            "x-ms-service-request-id": "9ef5aa1f-05f0-440a-8b54-1c2c5bcee2f4",
            "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
            "REQ_ID": "9ef5aa1f-05f0-440a-8b54-1c2c5bcee2f4,9ef5aa1f-05f0-440a-8b54-1c2c5bcee2f4",
            "CRM.ServiceId": "CRMAppPool",
            "AuthActivityId": "dc594e9f-d40e-4c9e-8bc9-78771897715c",
            "x-ms-dop-hint": "4",
            "x-ms-ratelimit-time-remaining-xrm-requests": "1,200.00",
            "x-ms-ratelimit-burst-remaining-xrm-requests": "7999",
            "OData-Version": "4.0",
            "X-Source": "112131632099304993187239432194623490142232701841012306824717281781559115711016287,112131632099304993187239432194623490142232701841012306824717281781559115711016287",
            "Public": "OPTIONS,GET,HEAD,POST",
            "Date": "Tue, 08 Oct 2024 10:17:48 GMT",
            "Allow": "OPTIONS,GET,HEAD,POST",
            "Content-Type": "application/json; odata.metadata=full",
            "Expires": "-1",
            "Content-Length": "1713"
        },
        "body": {
            "error": {
                "code": "0x80040220",
                "message": "Principal user (Id=3a244ebd-e45e-ef11-bfe2-000d3a47ded7, type=8, roleCount=6, privilegeCount=1502, accessMode='0 Read-Write', AADObjectId='29d03b57-68c1-4568-9af5-f952ba1a9482', MetadataCachePrivilegesCount=5294, businessUnitId=9e811168-6773-eb11-b1ab-000d3a4aafaf), is missing prvWritemsdyn_flow_approval privilege (Id=6f444e41-eabf-4e18-ad94-83219ebf4efb) on OTC=10087 for entity 'msdyn_flow_approval' (LocalizedName='Approval'). context.Caller=3a244ebd-e45e-ef11-bfe2-000d3a47ded7. Consider adding missed privilege to one of the principal (user/team) roles.",
                "@Microsoft.PowerApps.CDS.ErrorDetails.0": "prvWritemsdyn_flow_approval",
                "@Microsoft.PowerApps.CDS.ErrorDetails.1": "Approval",
                "@Microsoft.PowerApps.CDS.ErrorDetails.2": "user",
                "@Microsoft.PowerApps.CDS.ErrorDetails.3": "3a244ebd-e45e-ef11-bfe2-000d3a47ded7",
                "@Microsoft.PowerApps.CDS.ErrorDetails.4": "10087",
                "@Microsoft.PowerApps.CDS.ErrorDetails.5": "Caller",
                "@Microsoft.PowerApps.CDS.HelpLink": "http://go.microsoft.com/fwlink/?LinkID=398563&error=Microsoft.Crm.CrmException%3a80040220&client=platform",
                "@Microsoft.PowerApps.CDS.InnerError.Message": "Principal user (Id=3a244ebd-e45e-ef11-bfe2-000d3a47ded7, type=8, roleCount=6, privilegeCount=1502, accessMode='0 Read-Write', AADObjectId='29d03b57-68c1-4568-9af5-f952ba1a9482', MetadataCachePrivilegesCount=5294, businessUnitId=9e811168-6773-eb11-b1ab-000d3a4aafaf), is missing prvWritemsdyn_flow_approval privilege (Id=6f444e41-eabf-4e18-ad94-83219ebf4efb) on OTC=10087 for entity 'msdyn_flow_approval' (LocalizedName='Approval'). context.Caller=3a244ebd-e45e-ef11-bfe2-000d3a47ded7. Consider adding missed privilege to one of the principal (user/team) roles."
            }
        }
    }
  • Expiscornovus Profile Picture
    31,407 Most Valuable Professional on 12 Oct 2024 at 12:56:17
    "Forbidden" error
    Can you share a screenshot of the configuration of the Update a row action?
     
    This will help us with troubleshooting and trying to find the root cause of your issue.
  • Michael E. Gernaey Profile Picture
    35,867 Super User 2025 Season 1 on 11 Oct 2024 at 14:03:56
    "Forbidden" error
    hi
     
    Please provide the full error information. If need, please switch back to the Old Ui and get it, (turn off new top right corner).
     
    Forbidden is a permission issue, so need to see more information and then can help

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

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

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading complete