cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Microsoft
Microsoft

'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

 

8 REPLIES 8
Highlighted
Community Support
Community Support

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.

Highlighted
Microsoft
Microsoft

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

Highlighted
Microsoft
Microsoft

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

Highlighted
Community Support
Community Support

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.
Highlighted
New Member

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 ??

Highlighted
Frequent Visitor

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

I just got the same error message, although the flow with multiple levels of approval worked just fine for several weeks. Any advice?

Highlighted
New Member

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

Facing the exact same issue. Do we have a solution ? Tried recreating approval step and recreating the entire flow. Also deleted all Approvals from CDS. 

Highlighted
Microsoft
Microsoft

Re: 'Start_and_wait_for_an_interim_approval' failed (precondition failed)

This is caused by flow server issue. Just wait and keep trying. They will fix it. But they will not tell you when the issue starts and when it ends.

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Users online (6,782)