cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rens_
Frequent Visitor

Error "ApprovalSubscriptionNotAllowed" when waiting on approval

We have a Flow where an approval is created, some steps are executed, and then the Flow will wait until the approval is executed. At the step of waiting on the approval to be done, I sometimes receive the error 'ApprovalSubscriptionNotAllowed'. I can't pinpoint when this is happening and when it's not.


It looks like the error isn't documented.

 

The full error message is the following:

 The request failed. Error code: 'ApprovalSubscriptionNotAllowed'. Error Message: 'Cannot wait on this approval in its current state.'. 

 

7G7FGrX

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @Rens_ ,

 

Thank you for your reply!

I am afraid that I could not reproduce this issue on my side too.

Maybe this issue is related to the Common Data Service or Backend service.

If you want to solve this issue as soon as possible, please consider contact Microsoft Flow support to assist you with this issue. Engineers may need to crawl HTTP requests to help you analyze this problem, which can also solve your problem more efficiently.

12.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

15 REPLIES 15
v-bacao-msft
Community Support
Community Support

 

Hi @Rens_ ,

 

I am afraid that I could not reproduce this issue on my side and we never encountered the issue before.

94.PNG

Please consider sharing the detailed configuration of the Flow so that we could analyze this issue further.

 

Besides, you could try to use Start and wait for an approval action to configure Flow instead of using these two actions.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Barry

 

Thanks for the feedback. I will try to change it to create and wait for approval. update: this isn't possible in our case as we are updating the list with the respond link

 

I can't reproduce the issue myself. Not on this tenant, not in this Flow, and not in other tenants. Any idea what the root cause of this issue is? Am I hitting some limits?

 

Thanks in advance.

 

 

Hi @Rens_ ,

 

Thank you for your reply!

I am afraid that I could not reproduce this issue on my side too.

Maybe this issue is related to the Common Data Service or Backend service.

If you want to solve this issue as soon as possible, please consider contact Microsoft Flow support to assist you with this issue. Engineers may need to crawl HTTP requests to help you analyze this problem, which can also solve your problem more efficiently.

12.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi.

 

Did you found out what was causing this issue? If so, could you please share?

 

It is currently happening to me, and there is so little about it online!

 

Thank you.

I changed the action to 'Start and wait for approval'. When I saw this didn't meet the requirements, it was changed back to the separate start approval and wait for approval. It didn't show up since.

 

It once popped up for 1 time in another Flow, but it couldn't be reproduced so I'm afraid I don't have a correct solution for you. I didn't bothered contacting Flow support to dive into this issue. I probably would have done it if the issue still persisted. Maybe you can use the support of the Flow team and keep u posted about a good fix?

 

BR

Anonymous
Not applicable

We have the same error.

 

I think I found the issue too. We have the requirement to create an approval and get the outcome later on in a different flow (at least I decided to do that to have smaller and less complicated flows).

For this, I store the ApprovalID in a Sharepointelement after teh creation and the other flow waits for an approval which has that stored ID.

 

I get this error everytime. I think it is because the approval is already finished (approved/declined) before the wait-action in the second flow gets called. This will be the case almost everytime in our use-case, so I contacted the support.

 

If we find anything further I'll let you know.

 

 

Anonymous
Not applicable

Hello again,

 

I have been in touch with the microsoft support, and my theory has been confirmed. If you take action in an approval before the flow gets to the "Wait for approval", this error happens.

 

However, this is expected behavior from Microsoft and not a bug. Personally, I don't know why. What's the point in having the start-action and the wait-action separately if it can get an error everytime you approve before the wait-action gets called?

 

A workaround for this is to work with the CDS and get the approval response for the approval you created there with the "List records"-Action from the CDS.

 

I hope this helps people in the future looking for this error 😉

 

Best regards

This should be marked as answer instead. Thanks sir!

Hi @Rens_ ,

Even though this thread is old, I thought I'd add the solution I came up with so others might benefit.

I added a parallel branch. One branch contains the "wait for an approval", the other the notification. then I set a delay action to delay the sending of the notification so the "wait for an approval action" gets called earlier than anyone can react.
Parallel branch in approval scopeParallel branch in approval scope

 Cheers

stingray
Advocate III
Advocate III

Had a call from MS support this morning to say the issue has been resolved, ive re-submitted one of my affected Flows and its gone straight through to the Wait for Approval Action.

We seem to have a lot of issues using the Wait for approval action, but i update a master log list for history of approvals using the Approval ID,  there may be a better way of actioning this by way or a parallel branch and changing to the normal create and wait approval action.  

I had this issue today, so I'm afraid it still can happen that someone is faster than lightning 🙂

Hi PowerMar10, ive had this issue using the Wait for approval connector, but unfortunately there's not much that can be done if you have actions in between creating and waiting for the approval that take a time to complete, you could try adding these additional actions to a parallel branch depending on how your flow works and there isn't a dependency on them.
If you dont have any actions in between i roccomend using the Create and Wait for approval, lets hope the product team pull something ou the bag when the new sequential apporvals come in May from the new release wave.

Btw you will need to turn these features on in the Admin console, and make sure that anything they are removing feature wise isnt in your production environment, for example they will be removing the legacy datverse connector, so you would need to make sure any Flows etc are not using this and have been migrated to the latest one.

Hope that helps.

I logged a ticket with Microsoft and the outcome is:
"As this is an expected behavior, could you please confirm, can we close this ticket?"

I never knew that a bug is expected behavior before this time 😞

 

For those encountering this issue, the true cause is that the flow task "create an approval" reports as successful, as soon as it's handed off execution to the Dataverse approval sub-system, as opposed to waiting on Dataverse approval registration, (which can last more than a minute in my case,) to fully complete before reporting success and continuing flow execution.

 

This means that if you attempt to take action on an approval shortly after it's creation reported as successful in MS flow, it may in fact still be in the process of Dataverse registration and as such, unavailable for any actions (like awaiting the approval), resulting in Error code: 'ApprovalSubscriptionNotAllowed'. Error Message: 'Cannot wait on this approval in its current state.'.

 

If you are licensed to access Dataverse, then monitoring the status of the approval created there would certainly be the best workaround -

For those without Dataverse licensing, the recommended workaround from MS is to introduce adequate delay in business process to accommodate the approval creation time...but there is no clarity what this delay time value is be based on, or whether time required will remain a constant value or could be influenced by other factors.

 

That's a pretty large failure in my book: hope it might be helpful to others to understand the mechanism that could lead to this state based failure; Please open a ticket if you run into this, seems MS needs motivation to correct bugs.

Neros
New Member

I'm facing the same problem. I've created separated flow to work with Approvals. One is responsible for creating Approval (and I have an action after this to store the Approval ID on a SharePoint List). Other is responsible to collect approval outcome (action "Wait for approval" with the mentioned ApprovalID). 

The problem occurs with the second flow. I've tested a lot here, and I got a possible scenario: if the responsible responds the Approval immediately when it appears on Teams, the second flow get the "ApprovalSubscription" error. However, if they wait at least 1 minute to respond, the approval outcome is successfully collected. I couldn' tell why, but it have worked for me. 

Thing is, how we tell users to wait one minute to respond, when we cannot really fix this issue because we don't have full control of this integration?

lsheltonSTO1
Most Valuable Professional
Most Valuable Professional

Just got this error on two flows on a flow that's been running fine for months and has a pattern that I've used successfully for 2 years on similar approval flows.  I wouldn't think this is an issue of needing to add a delay because the file was locked for editing - the previous step took 30 minutes as you can see.

lsheltonSTO1_0-1710797709165.png

 

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!    This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24  17 @Anil_g  7 @ManishSolanki  13 @eetuRobo  5 @David_MA  10 @VishnuReddy1997  5 @SpongYe  9JhonatanOB19932 (tie) @Nived_Nambiar  8 @maltie  2 (tie)   @PA-Noob  2 (tie)   @LukeMcG  2 (tie)   @tgut03  2 (tie)       Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate  @Deenuji  12@ManishSolanki 19 @Anil_g  10 @NathanAlvares24  17 @VishnuReddy1997  6 @Expiscornovus  10 @Tjan  5 @Nived_Nambiar  10 @eetuRobo  3 @SudeepGhatakNZ 8     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22   Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2   Anil_g2   SharonS2  

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages

Users online (711)