cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ichbinbunny
Level: Powered On

'Start_and_wait_for_an_interim_approval' failed (precondition failed)

My approval flow failed after running successfully over 4 months. received and sent emails changed to XrmApiRequestFailed

 

PreconditionFailed 

The request failed. Error code: 'XrmApiRequestFailed'. Error Message: 'Request to XRM API failed with error: 'Message: A record with matching key values already exists. Code: 0x80040237 InnerError: Type: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]] Message: Cannot insert duplicate key. StackTrace: at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.CreateInternal(Entity entity, InvocationContext invocationContext, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, Dictionary`2 optionalParameters) at Microsoft.Crm.Extensibility.OData.CrmODataExecutionContext.CreateOrganizationResponse(Entity entity) at Microsoft.Crm.Extensibility.OData.CrmODataServiceDataProvider.CreateEdmEntity(CrmODataExecutionContext context, String edmEntityName, EdmEntityObject entityObject, Boolean isUpsert) at Microsoft.Crm.Extensibility.OData.EntityController.PostEntitySetImplementation(String& entitySetName, EdmEntityObject entityObject) at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func) at lambda_method(Closure , Object , Object[] ) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass10.<GetExecutor>b__9(Object instance, Object[] methodParameters) at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__0.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__1.MoveNext() InternalException: '.'.


Condition
0s

 

5 REPLIES 5
Community Support Team
Community Support Team

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

Hi @ichbinbunny,

 

Have your issue solved by itself?

 

If not, could you please share your Flow configuration?

 

You can have a try to confirm the Flow whether it could run successfully.

 

Best Regards,

Community Support Team _ Lin Tu

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

ichbinbunny
Level: Powered On

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

No, it failed

 

I have three flows and only the two approval flows not working

 

1, the approval received box not showing list anymore (screenshot attached)

2, flow still create item in SharePoint list but when the pre-condition is running, it does not trigger emailsflow conf.PNG

 

 

received box.PNG

Microsoft Employee

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

You are not alone on this issue. It is widespread within the Microsoft tenant, we have a mitigation in the process of deploying right now

Community Support Team
Community Support Team

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

 

Hi @ichbinbunny / @nickdurak ,

 

Please check the information posted by MS Flow Support, this issue has been fixed:

https://preview.flow.microsoft.com/en-us/support/

Please try again and feel free let us know if the issue still exists.

 

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.
Matthias-OTK
Level: Power Up

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

I just came across the exact same issue.

Playing around with creating an approval flow...

Worked fine until about 5 minutes ago.

Getting this error since - although I have not changed any part of the approval steps in my flow.

 

Does this issue still persist, despite that linked article saying it was fixed ??

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users Online
Currently online: 340 members 6,013 guests
Please welcome our newest community members: